节点Sass尚不支持您当前的环境:Windows 64位v

问题

Cannot load gulp: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (57)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v3.13.1
[09:57:14] Cannot run sass task: missing in gulpfile.js

解决方法尝试一 ---- 失败:

npm i node-sass -D

报错

解决方法尝试二 ---- 失败:

先卸载

npm uninstall --save node-sass

报错

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g.

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080

解决方法尝试三 ---- 成功:

使用淘宝镜像安装

cnpm install node-sass

成功界面如下

G:\Work\GateWay>cnpm install node-sass
√ Installed 1 packages
√ Linked 171 latest versions
Downloading binary from https://cdn.npm.taobao.org/dist/node-sass/v4.9.3/win32-x64-57_binding.node
Download complete
Binary saved to G:\Work\GateWay\node_modules\_node-sass@4.9.3@node-sass\vendor\win32-x64-57\binding.node
Caching binary to C:\Users\Administrator\.npminstall_tarball\node-sass\4.9.3\win32-x64-57_binding.node
Binary found at G:\Work\GateWay\node_modules\_node-sass@4.9.3@node-sass\vendor\win32-x64-57\binding.node
Testing binary
Binary is fine
√ Run 1 scripts
√ All packages installed (184 packages installed from npm registry, used 13s, speed 307.17kB/s, json 172(1.35MB), tarball 2.68MB)

 



作者:邪人君子
链接:https://www.jianshu.com/p/da70851ef244
来源:简书
 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值