简体   繁体   中英

about linux NPM install pm2 and error like this

I install pm2 and error like this . 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:

  "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 install --no-optional

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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