Answer the question
In order to leave comments, you need to log in
How to optimize the process of installing NPM/Gulp/Grunt packages?
After writing configs for gulp/grunt and running the command npm i
, the prescribed dependencies are installed.
This process sometimes takes a long time - for example, in case of a bad connection. The size of downloaded dependencies sometimes exceeds 100mb. In this case, the installation of bower and npm dependencies is performed in each folder with the initiated npm i
.
Can this process be optimized to take less time?
Probably some kind of local component cache on the PC you're using - how do I set it up?
Also, dependencies like jade and stylus are copied every time to every working folder., while they already exist in the installed node.js distribution on the computer - why and is it possible to avoid such duplicates?
I respect any comments on the topic.
Answer the question
In order to leave comments, you need to log in
The most important thing is the local node_modules folder. Copy node_modules folders from project to project, can be mixed with others. You can install some, copy some from another project. I do just that - I transfer the folder from project to project through transfer to far or total commander.
I am sure that 90% of your dependencies are the same on any project.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question