npm i每次都下载,有没更快的方法?
从网上下载的代码, 第一步执行npm i 要下载库文件. 有没办法从本地已下载过的文件里直接安装, 每次npm i都要下载, 要等很久
8 回复
如果涉及到phantomjs不会缓存,其被放在了bitbucket上,而其又被墙了,cnpm也管不了...开着goAgent做代理也巨慢还总失败...怎么破==!
@wh1100717 To use a mirror of the phantomjs binaries, set $PHANTOMJS_CDNURL, default is http://cdn.bitbucket.org/ariya/phantomjs/downloads
PHANTOMJS_CDNURL=http://npm.taobao.org/dist/phantomjs npm install phantomjs