Answer the question
In order to leave comments, you need to log in
How to change npm modules installation directory?
Hello. How can I change the node_modules directory in my working directory? For example, so that all modules fall into the vendor folder.
I did this: npm install ... --prefix vendor, but for example grunt did not see my config later.
Answer the question
In order to leave comments, you need to log in
It's impossible, unfortunately. The FAQ says that the name of this folder is hardcoded in 100500 places (yes, the excuse is left).
jspm can go to a folder of your choice, for the client-side - that's it. But grunt with plugins and stuff will still go to node_modules.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question