码上敲享录 > vue.js常见问题详解 > npm ERR! notsup Unsupported platform for n@9.0.0: wanted {"os":"!win32","arch":"any"} (current: {"os

npm ERR! notsup Unsupported platform for n@9.0.0: wanted {"os":"!win32","arch":"any"} (current: {"os

上一章章节目录下一章 2022-09-27已有3981人阅读 评论(0)

npm ERR! notsup Unsupported platform for n@9.0.0: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})


解决方法:

执行npm cache clean -f报错如下:

C:\Users\Administrator\Downloads\sqllineage-master\sqllineage-master>npm cache clean -f

npm WARN using --force I sure hope you know what you are doing.


C:\Users\Administrator\Downloads\sqllineage-master\sqllineage-master>npm install -g n

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\Administrator\AppData\Roaming\npm-cache\_logs\2022-09-27T08_15_20_830Z-debug.log


我最后解决方法是后面加--force:npm install -g n --force


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
1

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交