安装 hiper 执行命令
// 安装
sudo npm install hiper -g
//报错
Failed to download Chromium r686378! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
Puppeteer
安装失败
解决方法
npm config set puppeteer_download_host=https://npm.taobao.org/mirrors
npm uninstall hiper -g && npm install hiper -g
hiper baidu.com
解决方法: https://github.com/pod4g/hiper/issues/29
hiper -n 1 taoquns.com
结果:
DNS lookup time 9.00 ms
TCP connect time 740.00 ms
TTFB 84.00 ms
Download time of the page 6.00 ms
After DOM Ready download time 1.31 s
White screen time 2.58 s
DOM Ready time 2.58 s
Load time 3.89 s