今天在配置Ubuntu yarn时,遇到错误,如下:
node_modules/phantomjs-prebuilt: Command failed.
参考这个问题的答案:https://segmentfault.com/q/1010000010278132
知道了产生error的原因是国外的镜像访问超时,切换成国内淘宝镜像源
命令行运行:PHANTOMJS_CDNURL=http://npm.taobao.org/mirrors/phantomjs yarn install
成功了^^