V
V
vohaha2015-09-28 15:21:36
npm
vohaha, 2015-09-28 15:21:36

Is it possible to change folder only for packages in dependencies?

Is it possible to assign different folders for devDependencies and dependencies?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2015-09-28
@k12th

Short answer: no.
Long answer: The npm FAQ says that node_modules is hardcoded into the core of node's module loading mechanism, so alas.
Useful (probably) answer: if we are talking about the front, then you can install devDependencies via npm, and dependencies via bower.
Honest answer: what for? You don't have to manually manage the node_modules folder anyway. And in package.json it is quite separated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question