Answer the question
In order to leave comments, you need to log in
How to move individual (Not Global) node modules from the project folder to another folder?
The node_modules folder contains a lot of files, which is not very convenient.
How can I move it to another location on my hard drive?
node_modules two folders are created, one in % AppData%, the second in the root of the project, I need both of them to be created in % AppData%, only the second one is not in % AppData% \ npm but in % AppData% \ npm \ ProjectName
Answer the question
In order to leave comments, you need to log in
In the new npm version this will be fixed, the node_modules folder will not be created in the project folder
You don't need to move this folder. Deploy everything from scratch with npm without the pain
Add the node_modules folder to .gitigrore and forget to synchronize it
It is created automatically by npm and not gulp in the root of the node project, when deploying just write npm i or yarn
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question