“安全”是指“通过再次运行 npm install
即可轻松修复”。我怀疑我有时会破坏安装,因为我中断了这个过程,但没有证据证实这是原因。
而且,如果它不安全,我是否应该在中断 npm 之后总是rm -rf node_modules/
?
最佳答案
As of npm@3, anything that modifies your
node_modules
folder (such asnpm install
) will automatically repair yournode_modules/
folder -- so, if you break things with^C
, just rerunnpm install
and you're good to go!
关于node.js - 用 ^C 中断正在运行的 `npm install` 是否安全?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34134836/