简体   繁体   English

关于linux NPM安装pm2和类似的错误

[英]about linux NPM install pm2 and error like this

I install pm2 and error like this . 我安装pm2和这样的错误。 Can anyone help? 有人可以帮忙吗?

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.

The fsevents package.json specifically only supports the darwin OS architecture: fsevents package.json特别仅支持darwin OS体系结构:

  "os": [
    "darwin"
  ]

However, as it is an optional dependency, you can safely ignore this error. 但是,由于它是一个可选的依赖项,因此您可以放心地忽略此错误。

To suppress it entirely, you can tell npm to ignore any optional dependencies when installing: 为了完全抑制它,可以在安装时告诉npm忽略任何可选的依赖项:

npm install --no-optional

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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