trying to upadate node version. R enter image description here unning this sequence of commands.
1.npm cache clean -f
after running the second command I am getting this error
$ npm install -gn npm ERR. code EBADPLATFORM npm ERR. notsup Unsupported platform for n@9:0:0, wanted {"os":":win32":"arch","any"} (current: {"os":"win32","arch":"x64"})
npm ERR: notsup Valid OS: !win32
npm ERR: notsup Valid Arch: any
npm ERR: notsup Actual OS: win32
npm ERR: notsup Actual Arch: x64
npm ERR: A complete log of this run can be found in: npm ERR. C:\Users\shara\AppData\Roaming\npm-cache_logs\2022-09-10T16_40_44_122Z-debug.log
Help would be greatly appreciated
If you visit this official node.js website, you can download the latest version depending on your operating system. You will be able to successfully upgrade your node version this way
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.