可以看出,已经有人问了十几次了,但到目前为止,我发现的解决方案都不适用于我.
我已经安装了Node的最新版本.js(12.18.3)安装在我的Windows 10 PC上,我正在try 使用npm安装一个软件包.当我输入npm -v
时,它返回的是5.6.0,在我看来这已经过时了——但当我try 安装一个包或更新npm时,每次都会出现以下错误:
npm WARN npm npm does not support Node.js v12.18.3
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! cb.apply is not a function
npm ERR! A complete log of this run can be found in:
我已try 卸载Node.js,删除所有node_模块文件夹,重新安装后重新启动我的电脑,但每次都是一样的.我也try 过使用npm install -g npm
和npm install npm@latest -g
,但再次出现同样的错误.
有什么解决办法吗?