1、报错如下图
解决:npm i node-sass --save-dev(加版本不行)
2、提示没有vendor文件
解决:
- node_modules创建vendor文件夹
- 根目录下执行npm rebuild node-sass --save-dev执行试试
3、报错vue Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 10.x
解决:
- 使用: npm rebuild node-sass
- 然后再npm run dev 就没问题了
4、node-sass rebuild安装报错
解决:
sudo rm -rf $(xcode-select -print-path)
xcode-select --install