xgplayer
xgplayer copied to clipboard
ARM64芯片下无法编译项目(Mac M1)
报错信息如下:
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
Node Sass对于node版本有要求,看看是否Node版本不在支持范围内
NodeJS | Supported node-sass version | Node Module |
---|---|---|
Node 17 | 7.0+ | 102 |
Node 16 | 6.0+ | 93 |
Node 15 | 5.0+, <7.0 | 88 |
Node 14 | 4.14+ | 83 |
Node 13 | 4.13+, <5.0 | 79 |
Node 12 | 4.12+, <8.0 | 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 |
报错信息如下:
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
@gemxx 建议将node-sass直接替换为sass,本质上是node-sass不支持M1的芯片架构
@gemxx 建议将node-sass直接替换为sass,本质上是node-sass不支持M1的芯片架构
[email protected] 已经升级了 sass-loader 并替换掉了 node-sass 为 sass。感谢您反馈