[英]Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (72)
Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (72)错误:Node Sass 尚不支持您当前的环境: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.当我使用最新版本的 node.js 即 12.6.0 和 npm 版本 6.9.0 时,我遇到了这个问题。
which version of node-sass is compatible with above mentioned node and npm versions.哪个版本的 node-sass 与上述 node 和 npm 版本兼容。
node-sass version: 4.5.3节点萨斯版本: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. 您可能从Windows或OSX系统复制了node_modules。 Rebuilding it builds the right version for your system. 重建它会为您的系统构建正确的版本。
I'm using wsl 2 with Ubuntu-20.04
and was facing this problem.我在Ubuntu-20.04
使用 wsl 2 并且遇到了这个问题。 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)
.您必须降级您的节点版本,因为node-sass
(此时)不适用于version 17 (latest)
甚至version 16 (stable)
。 However, switching to version 14
helped me.但是,切换到version 14
对我有所帮助。
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.这是 Node 版本的常见 node-sass 版本兼容性问题。
Duplicate Problem: https://stackoverflow.com/a/59025839/1708333重复问题: https ://stackoverflow.com/a/59025839/1708333
Quick hack:快速破解:
Uninstall and reinstall node-sass
and it will find missing binary for itself.卸载并重新安装node-sass
,它会为自己找到丢失的二进制文件。
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.检查您的节点版本是否支持 node-sass 版本。 Chose a stable node version and repeat above commands to fix this issue.选择一个稳定的节点版本并重复上述命令来解决这个问题。
Below is the compatibility table of the node with node-sass:-下面是该节点与 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/如果问题仍未解决,请查看 node-sass 支持的环境列表:- https://github.com/sass/node-sass/releases/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.