老牛亦解韶光贵,不等扬鞭自奋蹄。
react前端项目在用yarn install命令安装依赖时报错了,看了下报错信息是node-sass安装的时候编译报错。 解决方法: 第一步:配置淘宝镜像 yarn config set registry https://registry.npm.taobao.org -g
yarn config set registry https://registry.npm.taobao.org -g
第二步:配置下 node-sass 的二进制包镜像地址 yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
参考: https://www.jianshu.com/p/b37aa202da5c
Copyright @ 2024 jaysoncho Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster