I
I
Ilya Trusov2016-03-15 15:16:01
Node.js
Ilya Trusov, 2016-03-15 15:16:01

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

1 answer(s)
K
Konstantin Kitmanov, 2016-03-15
@artgrosvil

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 question

Ask a Question

731 491 924 answers to any question