Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (72)
I faced this issue when I used the latest version of node.js ie, 12.6.0 and npm version 6.9.0.
which version of node-sass is compatible with above mentioned node and npm versions.
node-sass version: 4.5.3
运行此命令可解决此问题。
npm install --save-dev node-sass
Use the following command:
npm rebuild node-sass
You likely copied the node_modules from a Windows or OSX system. Rebuilding it builds the right version for your system.
I'm using wsl 2 with Ubuntu-20.04
and was facing this problem. You have to downgrade your node version as node-sass
(at this moment) doesn't work with version 17 (latest)
and even version 16 (stable)
. However, switching to version 14
helped me.
Run these commands
sudo npm install -gn
sudo n 14.17.5
This is a common node-sass version compatibility problem with the Node version.
Duplicate Problem: https://stackoverflow.com/a/59025839/1708333
Quick hack:
Uninstall and reinstall node-sass
and it will find missing binary for itself.
npm uninstall --save-dev node-sass
npm install --save-dev node-sass
Permanent solution:
If issue is not resolved using above commands, there may be problem with your node version. Check that your node version supports node-sass version. Chose a stable node version and repeat above commands to fix this issue.
Below is the compatibility table of the node with node-sass:-
NodeJS | Supported node-sass version | Node Module
Node 17 7.0+ 102
Node 16 6.0+ 93
Node 15 5.0+ 88
Node 14 4.14+ 83
Node 13 4.13+, <5.0 79
Node 12 4.12+ 72
Node 11 4.10+, <5.0 67
Node 10 4.9+, <6.0 64
Node 8 4.5.3+, <5.0 57
Node <8 <5.0 <57
If the issue is still not fixed, check the node-sass supported environment's list:- https://github.com/sass/node-sass/releases/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.