解决node-sass安装失败

node-sass 安装时需要下载一个node-sass …binding.node 文件,所以设置了淘宝源还是经常安装失败。还需要配置 sass_binary_site

1
2
3
4
5
yarn config set registry https://registry.npmmirror.com
yarn config set sass_binary_site https://registry.npmmirror.com/mirrors/node-sass
或者
npm set registry https://registry.npmmirror.com
npm set sass_binary_site https://registry.npmmirror.com/mirrors/node-sass