Node Sass 与苹果 m1、Big Sur 和 arm64 [英] Node Sass with apple m1, Big Sur and arm64
本文介绍了Node Sass 与苹果 m1、Big Sur 和 arm64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Error: Node Sass does not yet support your current environment: OS X Unsupported architecture (arm64) 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
at module.exports (/Users/hhag/Desktop/test_gulp/node_modules/node-sass/lib/binding.js:13:13)
at Object.<anonymous> (/Users/hhag/Desktop/test_gulp/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
at Module.load (node:internal/modules/cjs/loader:989:32)
at Function.Module._load (node:internal/modules/cjs/loader:829:14)
at Module.require (node:internal/modules/cjs/loader:1013:19)
at require (node:internal/modules/cjs/helpers:93:18)
at Object.<anonymous> (/Users/hhag/Desktop/test_gulp/node_modules/gulp-sass/index.js:166:21)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
当我开始使用 gulp 时出现此错误.是否有将 gulp-sass 与 apple m1 一起使用的解决方案?谢谢
this error occures when I start to use gulp. is there a solution for using gulp-sass with apple m1? thanks
推荐答案
我在 M1 上安装 node-sass
时也遇到问题,最后利用这个机会将其替换为 sass
,在 LibSass 弃用通知中推荐.
I also had issues installing node-sass
on M1, and ended up using the opportunity to replace it with sass
, as recommended on the LibSass deprecation notice.
https://sass-lang.com/blog/libsass-is-deprecated
替换完全顺利,它在 M1 上工作,我在本地或 CI 上没有注意到任何性能影响.
The replacement was completely smooth, it worked on M1, and I couldn't notice any performance impact locally or on the CI.
这篇关于Node Sass 与苹果 m1、Big Sur 和 arm64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文