简体   繁体   English

在 ubuntu 上 npm install fsevents 说平台不受支持

[英]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.

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