Answer the question
In order to leave comments, you need to log in
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.
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.
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
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 questionAsk a Question
731 491 924 answers to any question