【发布时间】:2018-03-07 00:30:57
【问题描述】:
我尝试更新 npm 以查看它是否能解决我们遇到的一些依赖问题,现在我想降级到开发团队其他成员正在使用的版本。如何安装旧版本?
我按照installation page上的说明更新了npm:
更新 npm
Node 自带 npm,所以你应该有一个 npm 版本。但是,npm 比 Node 更新得更频繁,因此您需要确保它是最新版本。
npm install npm@latest -g
【问题讨论】:
-
由于npm开发者重写了文档,关于更新npm的内容暂时在About npm CLI versions | npm Docs。
标签: node.js npm installation downgrade