npm choose global install directory -


i want install npm dependencies package.json in current directory, want install them different directory.

can make setting (install directory of node_modules) project specific, not interfere other projects?

you can try --prefix.

npm install --prefix new/path/node_modules 

https://docs.npmjs.com/misc/config#prefix

note: important, there node_modules folder


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -