yarn 安装 node-sass 依赖报错

把镜像源改成淘宝的镜像源就 ok 了

1. 修改镜像源

yarn config set registry https://registry.npm.taobao.org -g

2. 配置 node-sass 的二进制包镜像地址

yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

3. 使用 yarn 安装 node-sass

yarn add node-sass -D

再次安装时就不会报错了!

发布了19 篇原创文章 · 获赞 13 · 访问量 5092

猜你喜欢

转载自blog.csdn.net/actionActivity/article/details/104761006