【发布时间】: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”也不能修复错误。
【问题讨论】: