【发布时间】:2022-02-15 21:54:08
【问题描述】:
Package-lock.json 将 fsevents 作为 optionalDependecy,这会导致构建失败。如何删除它或让 Jenkins 支持 fsevents?
这是我在 npm install 时从 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
【问题讨论】:
标签: jenkins npm build fsevents