npm 安装包两次吗? [英] Does npm install package twice?

查看:76
本文介绍了npm 安装包两次吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行 npm install 来安装我的依赖项.

I run npm install to install my dependencies.

第一次,一些包安装失败.

At the first time, some package install failed.

我再次运行 npm install.

npm 会重新安装每个依赖项还是只是不安装包?

Will npm reinstall every dependency again or just the package not be installed?

推荐答案

除了第一次运行 npm install 之外,只会安装丢失的包和需要更新的包.

Running npm install apart from the first time installs only the missing packages and those that need update.

根据 stian 的输入,参考 docs.npmjs.com/cli/install#algorithm

As per stian's input, refer docs.npmjs.com/cli/install#algorithm

这篇关于npm 安装包两次吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆