N
N
Nick V2015-03-24 04:20:09
Node.js
Nick V, 2015-03-24 04:20:09

How to change the path where node_modules is installed in PyCharm?

Please tell me how to change the path so that the node_modules folder is installed not in the root of the project, but in another place?
UPD
I work in PyCharm'e. There is an option to install packages using npm into the project.
3aa46cf6a48b4de3ad7dff34c1539168.jpg
But when you select and install a package, it is installed in the node_modules folder at the root of the project. If you install with the --prefix option, then the package is installed where you need it, BUT! will not appear in the list of installed packages.
Here is the structure of my project.
1f829cfe7889411aae6a6b45eed7739b.jpg
How can I make sure that the package is placed in the vendors folder and displayed in the list of installed packages?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2015-03-24
@half-life

Set NODE_PATH environment variable
Read more here
https://nodejs.org/api/modules.html#modules_loadin...
stackoverflow.com/questions/18974436/change-node-m...
You can use --prefix option
https:/ /docs.npmjs.com/files/folders
https://docs.npmjs.com/misc/config#prefix
stackoverflow.com/questions/14742553/npm-local-ins...
To avoid writing --prefix, use . npmrc
https://docs.npmjs.com/files/npmrc
There is a similar .bowerrc for bower

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question