前端框架运行环境问题汇总

1、安装yarn后提示npm rebuild node-sass的一系列问题

     问题一:按提示运行后发现资源无法正常下载,将资源路径映射到淘宝的镜像资源即可

     解决:    yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass ;然后运行 yarn add --force node-sass

 

 

 

整体运行命令如下

 

npm config set registry http://registry.npm.taobao.org/
npm install -g yarn
yarn install
yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
yarn add --force node-sass
npm run build

posted on 2019-07-01 14:41  弦音  阅读(478)  评论(0)    收藏  举报

导航