简体   繁体   English

任何命令上的Npm错误

[英]Npm errors on any command

So I tried installing any npm package or npm itself but I keep getting this error 所以我尝试安装任何npm软件包或npm本身,但我一直收到此错误

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","
arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64

I am in windows 7. I use node v8.9.4 and npm v.5.6.0. 我在Windows 7中。我使用节点v8.9.4和npm v.5.6.0。 I also have installed git. 我还安装了git。 Is there anything I can do to debug my npm. 我可以做些什么来调试我的npm。

I tried npm cache verify and npm cache clean -f but none worked. 我尝试了npm cache verifynpm cache clean -f但是没有一个起作用。

您应该重新安装NodeJS,也许您在它询问您有关命令行的内容时单击了应该单击的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM