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

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

出现这个原因是因为 Node 版本与node-sass版本不匹配导致,由于node版本的升级,原来项目中的node-sass版本过低。

可以 win + R  输入cmd 回车

 查看当前node版本

查看项目中Node-sass的版本

查看node与node-sass版本对应关系

node对应版本查看https://www.npmjs.com/package/node-sass

 可见,当前node-sass版本为4.0.0,版本过低。

node指定版本下载地址icon-default.png?t=M85Bhttps://nodejs.org/dist/

解决方案:

扫描二维码关注公众号,回复: 15918189 查看本文章

npm rebuild node-sass

 执行完之后再执行

npm update

重启项目即可解决

猜你喜欢

转载自blog.csdn.net/pidanl/article/details/127364519