Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
npm ci 与 install 的区别
package-lock.json或npm-shrinkwrap.json文件存在package.json中版本不匹配,直接报错中断,而不是更新 lock 文件node_modules已经存在,则先删除再进行安装操作dependencies和devDependencies,-—production或通过NODE_ENV配置,则只会安装 dependenciespackage.json或package-lock.json文件,整个安装过程是锁死的npm ci --cache .npm--quiet --no-progress关闭进度和其他无用 log,否则产生的日志会很大。npm ci --cache .npm --quiet --no-progress相关资源