Speeding up the npm install

前端 未结 8 1887
忘掉有多难
忘掉有多难 2021-02-01 14:54

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

8条回答
  •  借酒劲吻你
    2021-02-01 15:21

    We have been trying to solve this problem to speed up our deployments.

    We have settled on using pac, which follows the principles in the other answers. It zips the npm modules and includues them in your repo so you don't have a million files in your commits and code reviews and you can just unzip/rebuild for the target machine.

    https://www.npmjs.com/package/pac

提交回复
热议问题