关于linux NPM安装pm2和这样的错误

时间:2016-10-20 09:13:25

标签: node.js linux ubuntu

我安装了pm2并且错误就像这样。有人可以帮忙吗?

npm WARN optional Skipping failed optional dependency /pm2/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
npm WARN root No description
npm WARN root No repository field.
npm WARN root No README data
npm WARN root No license field.

1 个答案:

答案 0 :(得分:0)

fsevents package.json特别支持darwin操作系统架构:

  "os": [
    "darwin"
  ]

但是,由于它是可选的依赖项,因此您可以放心地忽略此错误。

要完全禁止它,您可以告诉npm在安装时忽略任何可选的依赖项:

npm install --no-optional