简体   繁体   English

节点 Sass 尚不支持您当前的环境:Linux 64 位,在 debian 10 上具有不受支持的运行时 (88)

[英]Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (88) on debian 10

Here are the node and package versions npm:7.4.0 , node:15.6.0 , dociql:1.1.3 and I have used found solutions like npm rebuild node-sass , npm uninstall --save-dev node-sass , npm install --save-dev node-sass but none of them worked. Here are the node and package versions npm:7.4.0 , node:15.6.0 , dociql:1.1.3 and I have used found solutions like npm rebuild node-sass , npm uninstall --save-dev node-sass , npm install --save-dev node-sass但它们都不起作用。 With node 15.x, node-sass:5.0+ is the suitable version according to official docs.根据官方文档,对于节点 15.x,node-sass:5.0+ 是合适的版本。 I don't know what exactly is causing the issue.我不知道究竟是什么导致了这个问题。

    /usr/lib/node_modules/dociql/node_modules/node-sass/lib/binding.js:13
      throw new Error(errors.unsupportedEnvironment());
      ^
Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
    at module.exports (/usr/lib/node_modules/dociql/node_modules/node-sass/lib/binding.js:13:13)
    at Object.<anonymous> (/usr/lib/node_modules/dociql/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (/usr/lib/node_modules/dociql/node_modules/coffeescript/lib/coffeescript/register.js:53:36)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/usr/lib/node_modules/dociql/app/lib/config.js:2:14)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (/usr/lib/node_modules/dociql/node_modules/coffeescript/lib/coffeescript/register.js:53:36)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at module.exports (/usr/lib/node_modules/dociql/index.js:61:18)
    at Object.<anonymous> (/usr/lib/node_modules/dociql/bin/dociql.js:40:1)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:973:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47

Since you're running on Linux, the available versions, per [1], are 0 through 14, so 15.x is not supported -- try switching to 14.x (there are tools like nvm for quick switching node versions).由于您在 Linux 上运行,因此每个 [1] 的可用版本为 0 到 14,因此不支持 15.x - 尝试切换到 14.x(有用于快速切换节点版本的 nvm 等工具)。

In general, if you can use dart-sass [2] instead of node-sass - I highly recommend it - saves loads of headaches like this and works great (same language & everything; just a different compiler (in dart) vs c++ with it's bindings that cause lots of issues in node-sass).一般来说,如果你可以使用 dart-sass [2] 而不是 node-sass - 我强烈推荐它 - 可以节省大量像这样的头痛并且效果很好(相同的语言和所有东西;只是一个不同的编译器(在 dart 中)与 c++ 与它是在 node-sass 中引起很多问题的绑定)。

[1] https://github.com/sass/node-sass/releases/tag/v4.14.1 [1] https://github.com/sass/node-sass/releases/tag/v4.14.1

[2] https://www.npmjs.com/package/sass [2] https://www.npmjs.com/package/sass

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.

相关问题 Node Sass 还不支持你当前的环境:Linux 64-bit with Unsupported runtime (88) - Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (88) 节点 Sass 尚不支持您当前的环境:Windows 64-bit with Unsupported runtime (88) - Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88) 错误:Node Sass 尚不支持您当前的环境:Linux 64-bit with Unsupported runtime (64) - Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (64) 错误:Node Sass 尚不支持您当前的环境:Linux 64-bit with Unsupported runtime (72) - Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (72) 错误:节点 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) Node Sass 还不支持你当前的环境:Windows 64-bit with Unsupported runtime - Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime Node Sass 还不支持你当前的环境:OS X 64-bit with Unsupported runtime (72) - Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (72) “节点 Sass 尚不支持您当前的环境:Windows 64 位,运行时不受支持 (108)” - "Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (108)" 错误:Node Sass 尚不支持您当前的环境:OS X 64-bit with Unsupported runtime (72) - Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (72) 节点 Sass 尚不支持您当前的环境:Linux 64-bit with false - Node Sass does not yet support your current environment: Linux 64-bit with false
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM