npm install -g {package} || npm install {package} -g produce different results


(Yugalarora) #1
  • npm is producing an incorrect install.

When i do npm install -g {package} : Package is installed globally, corresponding package dependencies are also installed inside node_modules directory.
But when i do npm install {package} -g : Package is installed globally, corresponding dependencies are not installed.

node -v : v8.1.2
npm -v : 5.0.3

original link to issue raised earlier on github:


(Kat Marchán) #2

Moved to #support because I’m very suspicious about this reported bug and I suspect it’s a copy-paste issue. I would need much more info. A good next step for you would be to rewrite your OP to follow the new #bugs template. That’ll get us closer to figuring out what happened. :slight_smile: