因为不同项目经常切换 node 环境,结果今天运行项目发现如下报错:
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 12.x
问题
报错指出这是因为在安装依赖前切换了 node 环境
错误指导
同时还指出了运行命令 npm rebuild node-sass
去为当前环境下载绑定 Node Sass。
实际操作
果断去安装再运行 npm rebuild node-sass
结果
运行成功了
版权声明:本文为wzp20092009原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。