This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
npm install -g pkg
will install version in $PWD/pkg/package.json globally
#8284
Labels
Even if you use something like
npm install -g pkg@latest
, if there's a$PWD/pkg@latest/package.json
file, it will use that.This makes npm unreliable as a package manager for global packages.
Maybe we should consider prioritizing remote packages over local paths when using
-g
?The text was updated successfully, but these errors were encountered: