安装后卡在puppeteer:
[-/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源下载