Building fresh packages

初始化的时候开在puppeteer:

[5/5] Building fresh packages...
[-/11] ⠈ waiting...
[-/11] ⠈ waiting...
[11/11] ⠈ puppeteer
[-/11] ⠈ waiting...
[-/11] ⠁ waiting...

解决:

我用的是yarn:

步骤1:

  yarn config set puppeteer_download_host https://npm.taobao.org/mirrors

步骤2:

yarn add puppeteer --ignore-scripts
cd node_modules/puppeteer
yarn exec node install.js // 此处如果不设置第一步淘宝下载源,会卡在下载cromniom,应该是直接去google源下载


参见:
https://github.com/yarnpkg/yarn/issues/6663
https://www.cnblogs.com/jffun-blog/p/10211982.html

 

原文地址:https://www.cnblogs.com/neoliu6/p/12167716.html