npm在ubuntu上安装fsevents表示不受支持的平台

时间:2020-01-15 15:47:46

标签: npm fsevents

当我尝试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

不确定如何解决

1 个答案:

答案 0 :(得分:0)

我能够使用以下方法解决此问题(Ubuntu 19.04):

npm install node-sass

然后

npm serve

此问题已解决,npm serve现在可以正常启动服务器,并且应用程序可以正常运行。

...
webpack: Compiled Succesfully

现在

localhost:4200 for this app works correctly