我无法将 npm 8.12.1 更新到 10.2.5 的原因是什么?

问题描述 投票:0回答:1
Souvik@Souvik MINGW64 /e/next portfolio
$ npm install -g npm@latest
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"}
npm ERR! notsup Actual:   {"npm":"8.12.1","node":"v18.4.0"}

npm ERR! A complete log of this run can be found in:

每当我尝试安装最新的 npm 版本时,都会出现错误!节点也一样。

npm npm-install
1个回答
0
投票

尝试跑步

npm install -g npm
。这会将 npm 更新到最新的稳定版本。

© www.soinside.com 2019 - 2024. All rights reserved.