gpt4 book ai didi

node.js - 降级 Node 版本或 npm 版本时 Node JS 出错

转载 作者:搜寻专家 更新时间:2023-11-01 00:49:49 24 4
gpt4 key购买 nike

我在 windows 机器上的应用程序只运行 v6.11.0 的 Node 版本,NPM 是 3.11.11。

现在,我的node版本和npm都升级了。我无法下载 Node 版本和 NPM 版本。当前node版本是v10.14.1,npm是5.5.1

当我尝试降级时,我遇到了以下错误。

npm install -g node@6.11.0
npm install -g npm@3.10.10

Below error

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

关于如何解决我遇到的错误的任何想法。

最佳答案

我卸载了当前 Node ,安装了nvm https://github.com/coreybutler/nvm-windows

关于node.js - 降级 Node 版本或 npm 版本时 Node JS 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53614768/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com