我安装了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.
答案 0 :(得分:0)
fsevents
package.json特别支持darwin
操作系统架构:
"os": [
"darwin"
]
但是,由于它是可选的依赖项,因此您可以放心地忽略此错误。
要完全禁止它,您可以告诉npm在安装时忽略任何可选的依赖项:
npm install --no-optional