Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runt

重新搭建开发环境,运行报错,日志如下:

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
    at module.exports (E:\fsk\fsk-vue-customer\fsk-vue-customer\node_modules\_node-sass@4.14.1@node-sass\lib\binding.js:13:13)  
    at Object.<anonymous> (E:\fsk\fsk-vue-customer\fsk-vue-customer\node_modules\_node-sass@4.14.1@node-sass\lib\index.js:14:35)    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.sassLoader (E:\fsk\fsk-vue-customer\fsk-vue-customer\node_modules\_sass-loader@7.0.3@sass-loader\lib\loader.js:24:22)

访问 https://github.com/sass/node-sass/releases/tag/v4.14.1

Supported Environments

OSArchitectureNode
Windowsx86 & x640.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
OSXx640.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
Linux*x86 & x640.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8**, 9**, 10**^, 11**^, 12**^, 13**^, 14**^
Alpine Linuxx646, 8, 10, 11, 12, 13, 14
FreeBSDi386 amd6410, 12, 13

对比node版本,找到报错原因,node版本过高与当前node-sass不兼容。

C:\Users\Administrator>node -v
v16.14.2

解决方案:重装高版本node-sass或者降低node版本至14以下

我选择重装node-sass,执行 cnpm install --save node-sass,适配版本为node-sass@7.0.1

PS E:\fsk\fsk-vue-customer\fsk-vue-customer> cnpm install --save node-sass
√ Installed 1 packages
√ Linked 138 latest versions
[1/1] scripts.install node-sass@latest run "node scripts/install.js", root: "E:\\fsk\\fsk-vue-customer\\fsk-vue-customer\\node_modules\\_node-sass@7.0.1@node-sass"
Downloading binary from https://cdn.npmmirror.com/binaries/node-sass/v7.0.1/win32-x64-93_binding.node
Download complete
Binary saved to E:\fsk\fsk-vue-customer\fsk-vue-customer\node_modules\_node-sass@7.0.1@node-sass\vendor\win32-x64-93\binding.node
[1/1] scripts.install node-sass@latest finished in 3s
[1/1] scripts.postinstall node-sass@latest run "node scripts/build.js", root: "E:\\fsk\\fsk-vue-customer\\fsk-vue-customer\\node_modules\\_node-sass@7.0.1@node-sass"
Binary found at E:\fsk\fsk-vue-customer\fsk-vue-customer\node_modules\_node-sass@7.0.1@node-sass\vendor\win32-x64-93\binding.node
Testing binary
Binary is fine
[1/1] scripts.postinstall node-sass@latest finished in 410ms
√ Run 1 scripts
√ All packages installed (97 packages installed from npm registry, used 11s(network 8s), speed 382.52KB/s, json 42(151.38KB), tarball 2.66MB, manifests cache hit 96, etag hit 96 / miss 0)

  运行成功

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值