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

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

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

java - Cannot secure connection using TLS -