[英]Jenkins build fail: fsevents unsupported
Package-lock.json 將 fsevents 作為 optionalDependecy,這會導致構建失敗。 如何刪除它或使 Jenkins 支持 fsevents?
這是我在安裝 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
將 fsevents 作為可選依賴項添加到 package.json 解決了該問題
"optionalDependencies": {
"fsevents": "*"
},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.