My angular application was working fine for node version 14.15.0
.
I upgrade my node version to 16.17.0
and deleted the node_modules
folder and package-lock.json
.
Now I'm trying to do npm install
but I'm getting the below error related to node-gyp
/node-sass
packages.
The above issue is coming due to node-sass
since lower node-sass version is incompatible with Node 16.
It works fine after upgrading the node-sass
dependency in the project.
OR
CXXFLAGS="--std=c++14" npm install
worked for me as well on M14 Mac. Reference