I create a package.json
, I run npm install
, it works alright. It creates a node_modules
directory in my root folder (which I can change by using --prefix
option). However, I don't like underscores all that much. I want to change the name of the directory NPM downloads the modules to. I want it to be named nmods
or node-modules
or something like that.
Bower can do a similar thing by reading the directory
property inside a .bowerrc
file in the current dir. Is there a way to do the same with NPM?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…