[Vue] npm install 如果安装node-sass失败,可以用如下方法解决
Posted frost-yen
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Vue] npm install 如果安装node-sass失败,可以用如下方法解决相关的知识,希望对你有一定的参考价值。
在项目根目录添加一个.npmrc文件
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ registry=https://registry.npm.taobao.org
将安装路径修改为淘宝镜像
然后执行命令:
npm install
以上是关于[Vue] npm install 如果安装node-sass失败,可以用如下方法解决的主要内容,如果未能解决你的问题,请参考以下文章