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 install -g npm
。这会将 npm 更新到最新的稳定版本。