繁体   English   中英

NPM哪个版本兼容Node.js v13.6.0?

[英]What version of NPM is compatible with Node.js v13.6.0?

我目前在 Windows 8 中使用 Node.js v13.6.0。当我尝试安装 NPM package 时,显示如下:

npm i npm@6.4.1
npm does not support Node.js v13.6.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
npm ERR! code ERR_REQUIRE_ESM
npm ERR! Must use import to load ES Module: C:\Users\microshine\AppData\Roaming\npm\node_modules\npm\node_modules\just-diff\index.mjs

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\microshine\AppData\Local\npm-cache\_logs\2022-04-28T09_17_19_815Z-debug-0.log

我的系统不支持其他版本的Node.js所以只好忍了。 是否有其他替代方法可以使用此版本的 Node 安装 NPM?

同样的问题发生在我身上。 然后我安装了npm@6.12.1 ,它对我有用,所以npm install -g npm应该可以解决这个问题。 如果问题仍然存在,则尝试使用节点 v16升级到Windows 10 它一定会帮助你。

暂无
暂无

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

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