状态:似乎NodeJS有一个issue 仍然没有解决:
OS :视窗
在我的机器上,我开始使用NodeJS v.7.5.0
和npm v.5.4.2
。
已下载并安装了Nodejs v.9.0.0
,但是npm确实已升级到npm v5.5.1
当尝试使用npm install npm@latest -g
升级我的npm时,出现以下错误追溯:
npm WARN npm npm does not support Node.js v9.0.0
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.
npm WARN npm You can find the latest version at https://nodejs.org/
C:\Program Files\nodejs\node.exe: src\node_zlib.cc:430: Assertion `args.Length() == 7 && "init(windowBits, level, memLevel, strategy, writeResult, writeCallback," " dictionary)"' failed.
有任何建议如何修复它?
答案 0 :(得分:1)
答案 1 :(得分:0)
答案 2 :(得分:0)
试试这个:
%AppData%\npm
%AppData%\npm-cache