[英]Update Node.js: Error while updating to stable version
trying to upadate node version.尝试更新节点版本。 R enter image description here unning this sequence of commands.
R在此处输入图像描述,取消此命令序列。
1.npm cache clean -f 1.npm缓存清理-f
after running the second command I am getting this error运行第二个命令后,我收到此错误
$ npm install -gn npm ERR. $ npm 安装-gn npm 错误。 code EBADPLATFORM npm ERR.
代码 EBADPLATFORM npm 错误。 notsup Unsupported platform for n@9:0:0, wanted {"os":":win32":"arch","any"} (current: {"os":"win32","arch":"x64"})
notsup 不支持 n@9:0:0 的平台,需要 {"os":":win32":"arch","any"}(当前:{"os":"win32","arch":"x64" })
npm ERR: notsup Valid OS: !win32 npm ERR: notsup 有效操作系统: !win32
npm ERR: notsup Valid Arch: any npm ERR:notsup 有效拱门:任何
npm ERR: notsup Actual OS: win32 npm ERR:notsup 实际操作系统:win32
npm ERR: notsup Actual Arch: x64 npm ERR:notsup 实际拱门:x64
npm ERR: A complete log of this run can be found in: npm ERR. npm ERR:此运行的完整日志可在以下位置找到:npm ERR。 C:\Users\shara\AppData\Roaming\npm-cache_logs\2022-09-10T16_40_44_122Z-debug.log
C:\Users\shara\AppData\Roaming\npm-cache_logs\2022-09-10T16_40_44_122Z-debug.log
Help would be greatly appreciated帮助将不胜感激
https://nodejs.org/en/ https://nodejs.org/en/
If you visit this official node.js website, you can download the latest version depending on your operating system.如果您访问此官方 node.js 网站,您可以根据您的操作系统下载最新版本。 You will be able to successfully upgrade your node version this way
您将能够通过这种方式成功升级您的节点版本
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.