我在windows机器中的应用程序只运行节点版本的v6.11.0,NPM是3.11.11。
现在,我的节点版本和NPM已经升级。我无法下载节点版本和NPM版本。节点的当前版本为10.14.1,npm为5.5.1。
当我试图降级时,我面临以下错误。
npm install -g node@6.11.0
npm install -g npm@3.10.10以下误差
npm WARN npm npm does not support Node.js v10.14.1
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/
WARNING: You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.
Please use either the version of npm that is bundled with Node.js, or a version of npm (> 5.5.1 or < 5.4.0) or node-tar
(> 4.0.1) that is compatible with Node.js 9 and above.
npm[9256]: src\node_zlib.cc:441: Assertion `args.Length() == 7 && "init(windowBits, level, memLevel, strategy, writeResu
lt, writeCallback," " dictionary)"' failed.
1: 00007FF63013ECF5
2: 00007FF6301181A6
3: 00007FF630118271
4: 00007FF6300740B6
5: 00007FF630943BA2
6: 00007FF63094503D
7: 00007FF630944099
8: 00007FF630943F7B
9: 000002EA035DC5C1知道如何解决我所面临的错误吗。
发布于 2018-12-04 15:40:23
我卸载了当前节点并安装了nvm https://github.com/coreybutler/nvm-windows
发布于 2018-12-11 06:06:40
我安装了NodeV10.14.1,并在安装包时遇到了同样的错误。
我试图卸载和重新安装,但没有解决问题。Node.js的安装没有更新/升级"npm“版本。
然后,我按照下面的步骤来解决问题。
我希望这有助解决这个问题。
发布于 2020-02-09 17:44:40
需要回滚的npm i -g npm@add version。
例:npm i -g npm@5.5.1
然后检查您的版本:
npm -vI-安装g-全局
https://stackoverflow.com/questions/53614768
复制相似问题