- 先删除node_modules 文件夹。
- 在 Terminal 运行
npm install --global windows-build-tools --save
命令 - 再输入
node-sass npm install [email protected] --save
(或指定版本)
然后再次运行看看结果,亲测是能够成功解决问题的。
PS:如果遇到了Node Sass could not find a binding for your current environment
这个问题,输入npm rebuild node-sass
命令来解决。