简体   繁体   English

错误:节点 Sass 尚不支持您当前的环境:Windows 64-bit with Unsupported runtime (93)

[英]Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)

Getting below error after installed latest node.js (v16.13.1)安装最新的 node.js (v16.13.1) 后出现以下错误

Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93) For more information on which environments are supported please see: https://github.com/sass/node-sass/releases/tag/v4.14.1 I have created static pages for my application and use sass and gulp错误:节点 Sass 尚不支持您当前的环境:Windows 64-bit with Unsupported runtime (93) 有关支持哪些环境的更多信息,请参阅: Z5E056C500A1C4B6A7110B50D80nodeB7110B50D80nodeB7 /v4.14.1我为我的应用程序创建了 static 页面并使用 sass 和 gulp

I have a static pages and using Sass in the page and use gulp to run on the browser.(npm install).我有一个 static 页面并在页面中使用 Sass 并使用 gulp 在浏览器上运行。(npm install)。 Below are the version which worked my application:以下是适用于我的应用程序的版本:

  • Node.js - 12.18.0 Node.js - 12.18.0
  • gulp - "4.0.2" gulp-“4.0.2”
  • "gulp-sass": "4.1.0" “gulp-sass”:“4.1.0”

Package.json file Package.json文件

"scripts": {
              "start": "gulp watch"
    },
"dependencies": {
        "@fortawesome/fontawesome-free": "5.15.1",
        "@ttskch/select2-bootstrap4-theme": "^1.5.2",
        "bootstrap": "4.5.3",
        "bootstrap-datepicker": "^1.9.0",
        "jquery": "3.5.1",
        "jquery.easing": "^1.4.1",
        "select2": "^4.1.0-rc.0",
        "gulp": "4.0.2"
    },
    "devDependencies": {
        "browser-sync": "2.26.13",
        "del": "6.0.0",
        "gulp": "4.0.2",
        "gulp-autoprefixer": "7.0.1",
        "gulp-clean-css": "4.3.0",
        "gulp-header": "2.0.9",
        "gulp-plumber": "^1.2.1",
        "gulp-rename": "2.0.0",
        "gulp-sass": "4.1.0",
        "gulp-uglify": "3.0.2",
        "merge-stream": "2.0.0"
    }

Even using command npm rebuild node-sass is not changing anything.即使使用命令npm rebuild node-sass也没有改变任何东西。

gulp-sass 4.1.0 uses node-sass 4 , and node-sass 4 does not support Node.js 16, as indicated in this table . gulp-sass 4.1.0 使用node-sass 4 ,而 node-sass 4 不支持 Node.js 16,如下 表所示

To support Node.js 16, upgrade gulp-sass: the latest version today is 5.1.0 :要支持 Node.js 16,升级 gulp-sass:今天最新版本是5.1.0

npm install -D gulp-sass@5.1.0

This will give you node-sass 7, which supports all current versions of Node.js, including Node.js 16.这将为您提供 node-sass 7,它支持 Node.js 的所有当前版本,包括 Node.js 16。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM