Tuesday, October 24, 2017

global install flag

This is the difference between...

npm install karma-cli

 
 

...and...

npm install -g karma-cli

 
 

...and, yes, g means "global" instead of local meaning that the thing you are installing should be available beyond the immediate project. I guess I would install anything installed globally locally too so that a folder is made in node_modules for the project. (I like to back node_modules up to source control personally.) I don't yet know where things get saved off to in the global way to go.

No comments:

Post a Comment