[英]Jenkins build fail: fsevents unsupported
Package-lock.json has fsevents as optionalDependecy, which is causing build to fail. Package-lock.json 将 fsevents 作为 optionalDependecy,这会导致构建失败。 How can I remove it or, make Jenkins support fsevents?
如何删除它或使 Jenkins 支持 fsevents?
This is what I get from Jenkins when npm install;这是我在安装 npm 时从 Jenkins 得到的;
+ npm install
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
Adding fsevents to package.json as an optional dependency fixed the issue将 fsevents 作为可选依赖项添加到 package.json 解决了该问题
"optionalDependencies": {
"fsevents": "*"
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.