关于前端:phantomjs和nodesass安装失败被墙

phantomjs、node-sass、chromedriver因为谷歌资源被墙,导致包文件装置失败,须要再npm包中换成npm.taobao镜像门路。

$ cd \~

$ vim .npmrc

\#\#\#\# \_增加以下内容\_

sass\_binary\_site = https://npm.taobao.org/mirror…

phantomjs\_cdnurl = https://npm.taobao.org/mirror…

chromedriver\_cdnurl=http://cdn.npm.taobao.org/dis…

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理