【问题标题】:how to fix node-sass "not yet support your current environment" error on Linux如何在 Linux 上修复 node-sass“尚不支持您当前的环境”错误
【发布时间】:2020-01-08 07:12:37
【问题描述】:

在具有足够新的nodejs 的系统上运行npx grunt 时,构建错误:

Loading "Gruntfile.js" tasks...ERROR
>> Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (72)
>> For more information on which environments are supported please see:
>> https://github.com/sass/node-sass/releases/tag/v4.11.0
Warning: Task "default" not found. Use --force to continue.

Aborted due to warnings.

当以npx grunt --force 运行时,它会说:

$ npx grunt --force
/usr/bin/node: bad option: --force

如何修复构建?

附:系统为 ArchLinux,原生 nodejs 版本为12.9.1-1。抱歉,我不是 javascript 开发人员——我只需要毫无问题地构建这个外部事物。用于构建的相同存储库很好。我在测试过程中确实清理了所有缓存,但这并没有帮助。运行“npm install”也不能修复错误。

【问题讨论】:

    标签: node.js sass node-sass


    【解决方案1】:

    package.json / node-sass 升级到最新版本 (4.12.0?) 可能会有所帮助。

    该版本的官方发行说明也提到了“Node 12 support”:https://github.com/sass/node-sass/releases/tag/v4.12.0

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-07
      • 2018-10-22
      • 2021-02-10
      • 2016-09-21
      • 2019-04-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多