简体   繁体   English

npm 错误! 无法从汇总访问 fsevents

[英]npm ERR! fsevents not accessible from rollup

I am trying to build my Angular app on Gitlab CI, and install the dependencies with npm ci , but I encounter an error ' fsevents not accessible from rollup '.我正在尝试在 Gitlab CI 上构建我的 Angular 应用程序,并使用npm ci安装依赖项,但我遇到了错误“ fsevents not accessible from rollup ”。 I tried npm ci --no-optional and still having this error.我试过npm ci --no-optional并且仍然有这个错误。 How do I fix this?我该如何解决?

updated my angular 11 project dev dependencies to:将我的 angular 11 项目开发依赖项更新为:

"@angular-builders/custom-webpack": "^11.1.1",
"@angular-devkit/build-angular": "^0.1102.13",

needed to install webpack and here we go..需要安装 webpack 在这里我们 go ..

I have also got the same error with "@angular-devkit/build-angular": "0.1102.14" .我也遇到了同样的错误"@angular-devkit/build-angular": "0.1102.14" I have resolved this issue by upgrading npm from ver6 to ver7 with node ver 14我通过使用节点版本 14 将 npm 从版本 6 升级到版本 7 解决了这个问题

npm install -g npm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM