npm ERR! fsevents not accessible from rollup

4.1k Views Asked by At

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'. I tried npm ci --no-optional and still having this error. How do I fix this?

2

There are 2 best solutions below

0
On

updated my angular 11 project dev dependencies to:

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

needed to install webpack and here we go..

0
On

I have also got the same error with "@angular-devkit/build-angular": "0.1102.14". I have resolved this issue by upgrading npm from ver6 to ver7 with node ver 14

npm install -g npm