I am getting this error on running ng build
./node_modules/webpack-dev-server/client/index.js?protocol=auto%3A&username=&password=&hostname=0.0.0.0&port=0&pathname=%2Fng-cli-ws&logging=info&overlay=%7B%22errors%22%3Atrue%2C%22warnings%22%3Afalse%2C%22runtimeErrors%22%3Afalse%7D&reconnect=10&hot=false&live-reload=true – Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/tools/babel/webpack-loader.js):
Error: EACCES: permission denied, open ‘/app/.angular/cache/16.2.14/babel-webpack/8c4089325a41d7e6a0109ed788ace5297542e2aebbb21b82dfcf62b3aea46039.json’
There are 2 errors – build failed and unable to access file. I dont understand are they related or not? The file does not even exist they why is angular trying to access it 8c4089325a41d7e6a0109ed788ace5297542e2aebbb21b82dfcf62b3aea46039.json ? How can I fix the other error as well related to webpack-loader.js?
following is the environment info.
node v20.12.2
npm v10.5.0
ng v16.2.12