Angular error: Node Sass does not yet support your current environment
During your initial build command, most commonly when running
npm install, I got an error similar to the following:
Loading "listgrups.js" tasks...ERROR >> Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (72) >> For more information on which environments are supported please see: >> https://github.com/sass/node-sass/releases/tag/v4.11.0 Warning: Task "default" not found. Use --force to continue.
My project working with Angular 9.
How can I resolve it?
Nikhil Bharadwaj Jun 25 2021
I fixed this issue bug run command below:
npm --depth 9999 update npm rebuild node-sass
Hope it works for you.
Trọng Hiếu Jun 25 2021
Sometimes you need to uninstall and install
node-sasslibrary. You can try commands below:
npm uninstall --save-dev node-sass
npm install --save-dev node-sass
Hope it works!!
Việt Trọng Đỗ Jun 25 2021
I ran command
"yarn add node-sass"OR
"npm add node-sass"and it worked for me
Xhana Ahmetaj Jun 25 2021
I don't know exactly why the issue throws but I know a simple command can fix this error :
npm rebuild node-sass
Hoping this will be useful for some developers.