简体   繁体   English

更新 Node.js:更新到稳定版本时出错

[英]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

  1. npm install -gn npm 安装-gn

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.

相关问题 更新Node.js:在Mac上更新Node.js时出错 - Update Node.js: Error while updating Node.js on Mac 在 Ubuntu 上更新 Node.js - 更新后版本未更改 - Updating Node.js on Ubuntu - version not changed after update LTS版本和node.js的稳定版本有什么区别? - What is the difference between the LTS version and the stable version of node.js? 堆稳定,而rss增加node.js - Heap stable while rss increases node.js RSS内存增加,而Node.js中的堆稳定 - RSS memory increases while heap is stable in Node.js 类固醇错误:使用最新节点版本时,“您的Node.js版本已过时” - Steroids error: “Your Node.js version is outdated” while using newest node version Node.js不会更新到最新版本 - Node.js will not Update to Latest Version 此版本的 µWS 与您的 Node.js 版本不兼容:错误:节点加载程序。 在运行“松露控制台”时 - This version of µWS is not compatible with your Node.js build: Error: node-loader. while running "truffle console" AirBnB node.js有多稳定? - how stable is AirBnB node.js rendr? 新的 discord.js 更新破坏了我的机器人 - heroku 未更新 node.js 版本以使 discordjs 工作 - New discord.js update broke my bot - heroku not updating node.js version to make discordjs work
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM