简体   繁体   English

升级节点/ npm后需要安装npm吗?

[英]npm install required after upgrading node/npm?

I'm trying to understand if it is necessary to run a npm install after upgrading node/npm from 6.x to 8.x. 我试图了解在将node / npm从6.x升级到8.x之后是否需要运行npm安装。 If so, can you please explain why this is done? 如果是这样,您能解释一下为什么这样做吗? I had a hard time finding some documentation around this. 我很难找到一些与此相关的文档。

You should at least run npm rebuild . 您至少应该运行npm rebuild

Some packages may choose to do things differently in a different Node.js environment, particularly when it comes to binary modules. 一些程序包可能选择在不同的Node.js环境中执行不同的操作,尤其是在涉及二进制模块时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM