【问题标题】:Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)Sass 还不支持你当前的环境:Windows 64-bit with Unsupported runtime (93)
【发布时间】:2022-11-03 22:42:06
【问题描述】:

这就是 VSC 终端向我展示的

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

我在堆栈溢出中尝试了一些解决方案:

npm rebuild node-sass

和

npm uninstall node-sass && npm install node-sass

但不适用于,我看到有些人谈论节点版本是否支持 sass, 我正在使用v16.14.0 它的 LTS 版本应该支持我猜, 我希望有人可以提供帮助,谢谢

【问题讨论】:

    标签: npm node-sass


    【解决方案1】:

    这几乎就像是在尝试安装仅支持 Node 14 的 4.x 分支。

    尝试安装 7.0.1(当前最新)。

    npm i node-sass@7.0.1
    

    为了安全起见,我建议在安装之前继续擦拭node_modules。

    如果这不起作用,您能否在评论中发布整个输出?

    【讨论】:

    • 不起作用,仍然是相同的错误
    • 所以,是的,我个人对 node-sass 有很多问题,只是因为它比较老。通常我的解决方案是使用 NVM 之类的东西回滚到 Node v14 LTS。但这并不总是最好的。有什么办法可以换成正确的sass library 或者这是你无法控制的?
    • 它看起来也像你在运行纱线?这与您使用 NPM 的原始帖子相反。还有 gulp,这意味着有某种加载程序,不是吗?拥有完整的配置将帮助我们更好地帮助您。
    • 这是一个完全不同的问题,您没有安装 python 2。
    • Python 3 != Python 2。这是一个常见问题,但您的日志表明它正在寻找 Python 2,因此您需要 Python 2。
    【解决方案2】:

    修复由于 node-sass 导致的错误:

     1. Remove "sass" and "sass-loader" from package.json
     2. rm -rf node_modules
     3. npm install
     4. npm install sass --save-dev
     5. npm install sass-loader --save-dev
    

    某些包的版本在 package.json 中强制执行。解决方案是通过让 npm 为您的操作系统建立正确的版本来重新添加它们。

    【讨论】:

      猜你喜欢
      • 2019-02-14
      • 2021-02-13
      • 2021-02-15
      • 1970-01-01
      • 2020-05-20
      • 2019-04-22
      • 2018-10-22
      • 2016-09-16
      • 2019-12-07
      相关资源
      最近更新 更多