【问题标题】:npm install fsevents on ubuntu says unsupported platformnpm install fsevents on ubuntu 说平台不受支持
【发布时间】:2020-01-15 15:47:46
【问题描述】:

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

不知道如何解决

【问题讨论】:

    标签: npm fsevents


    【解决方案1】:

    我能够通过以下方式解决此问题(Ubuntu 19.04):

    npm install node-sass
    

    然后

    npm serve
    

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

    ...
    webpack: Compiled Succesfully
    

    现在

    localhost:4200 for this app works correctly
    

    【讨论】:

      猜你喜欢
      • 2018-08-23
      • 1970-01-01
      • 2017-03-06
      • 2021-07-09
      • 1970-01-01
      • 2021-05-11
      • 2021-02-24
      • 2017-01-12
      • 2021-12-05
      相关资源
      最近更新 更多