[英]npm install fsevents on ubuntu says unsupported platform
When i try npm install fsevents
I get当我尝试
npm install fsevents
我得到
Unsupported platform for fsevents@2.1.2:
wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
...
webpack: Failed to compile.
The server does start at localhost:4200
but all `get`s fails with cannot get
Not sure how to fix不知道如何修复
I was able to fix this issue (Ubuntu 19.04) by using:我能够使用以下方法解决此问题(Ubuntu 19.04):
npm install node-sass
and then进而
npm serve
This fixed the issue and npm serve
now brings up the server without error and the application functions correctly.这解决了问题,
npm serve
现在可以无错误地启动服务器并且应用程序正常运行。
...
webpack: Compiled Succesfully
and now现在
localhost:4200 for this app works correctly
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.