I am trying to speed up the npm install during the build process phase. My package.json has the list of packages pretty much with locked revisions in it. I\'ve also configured t
Nothing helped me more than disabling antivirus (Windows Defender in my case) I got from 2:30 to 1 minute. With npm-cache package I got to ~30 secs. I tried to use yarn, which is very fast, but was randomly failing in my case.
For pure npm solution, you may try
npm install --prefer-offline --no-audit --progress=false
Prefer offline may not be useful for the first run.