Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"lin...

jenkins 通过dockerfile构建前端项目,报错:

Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

原因:
linux不支持fsevents

解决方案:

RUN npm install -f

参考资料:
https://github.com/angular/angular/issues/13935

你可能感兴趣的:(Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"lin...)