初始化的時候開在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