启动前端项目时报错:Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 12.x
因为不同项目经常切换 node 环境,结果今天运行项目发现如下报错:
报错指出这是因为在安装依赖前切换了 node 环境
解决办法:直接为当前环境下载绑定 Node Sass。
npm rebuild node-sass
下载好后再重新启动项目:
npm run dev
解决问题: