Can we store node_modules into a common folder instead of local repository folder(node_modules) and then use this common folder into angular project?
i will explain my requirement via a flowchart :
I know its recommended that we are highly encouraged to place the dependencies locally in node_modules folders so that they will be loaded faster, and more reliably. But still i am trying to create a common local repo(like m2 in maven) which contains modules locally.
First of all, is it a good idea ? (in my point of view if i able to do this, the CD process will be reduced to 2-3 minutes from 20-25 minutes) [ We perform clean build hence agent clears local changes from the repository so
npm install
is required]All the dependencies are of fixed version(no upgradation automatically)
How do I configure npm to store the packages into common folder instead of local node_modules
How do I import packages present in common repository into my angular codebase
Can anyone help me on this . ??