更新node.js遇到错误:npm ERR! notsup Unsupported platform for n@7.3.0: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})


错误截图:

PS D:\WEB前端\案例\vue_shop> npm install -g n        
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@7.3.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\郑灿佳\AppData\Roaming\npm-cache\_logs\2021-07-14T05_58_50_168Z-debug.log

解决办法:

在npm命令npm install -g n后面添加 --force即可。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM