我在命令行执行 npm install -g n出现:npm ERR! code EBADPLATFORMnpm ERR! notsup Unsupported platform for n@2.1.12: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})npm ERR! notsup Valid OS: !win32npm ERR! notsup Valid Arch: anynpm ERR! notsup Actual OS: win32npm ERR! notsup Actual Arch: x64npm ERR! A complete log of this run can be found in:npm ERR! C:UsersdallAppDataRoamingnpm-cache_logs2018-06-29T06_16_04_239Z-debug.log如何解决?
2 回答
扬帆大鱼
TA贡献1799条经验 获得超9个赞
window的话安装一个nvm,然后用nvm管理node版本;
如果nvm使用过程中不能自动的话,手动下载多个node版本,手动切换 -- 不能好好用nvm再问我!因为大部分人都可以直接用nvm ls,nvm use -_-
慕田峪9158850
TA贡献1794条经验 获得超7个赞
n does not work on Windows at the moment. Pull Requests are appreciated
n 不支持管理 win 上面的 node 版本
- 2 回答
- 0 关注
- 1554 浏览
添加回答
举报
0/150
提交
取消