Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 1x.x


出现问题原因:

nodejs和node-sass版本不匹配

解决办法:

下载node-sass指定版本的nodejs

1)node-sass的节点版本支持政策

① 支持的 Node.js版本因版本而异

img

② 达到生命周期结束的节点版本将在每个 node-sass 版本(主要、次要)中从支持中删除,具体地址:https://github.com/nodejs/Release

③ 根据上标下载对应版本的nodejs

img

下载地址:https://nodejs.org/en/download/releases/

2)安装

npm中安装

1
npm install node-sass

在 Windows 系统上安装需要先安装node-gyp

1
npm install -g node-gyp

在国内镜像安装

1
2
npm install -g mirror-config-china --registry=http://registry.npm.taobao.org
npm install node-sass

node-sass在npm上的地址为:https://www.npmjs.com/package/node-sass

以上就是Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 1x.x的介绍,做此记录,如有帮助,欢迎点赞关注收藏!


文章作者: GoodTimeGGB
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 GoodTimeGGB !
评论
  目录