美文网首页
解决node-sass无法安装导致依赖安装失败

解决node-sass无法安装导致依赖安装失败

作者: ZZES_ZCDC | 来源:发表于2018-03-03 18:02 被阅读145次

如图


image.png

报错报错

解决方法
1、在项目根目录新建一个文件

$ touch .npmrc

2、在其中写入

phantomjs_cdnurl=http://cnpmjs.org/downloads
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
registry=https://registry.npm.taobao.org

3、重新安装依赖
即可


image.png

相关文章

网友评论

      本文标题:解决node-sass无法安装导致依赖安装失败

      本文链接:https://www.haomeiwen.com/subject/lkfxfftx.html