I am trying to build a vue project with prerendering. it relies on prerender-spa-plugin but this plugin relies on puppeteer. so when I install prerender-spa-plugin, it always show the same error 'Failed to download Chromium r579032'
ERROR: Failed to download Chromium r579032! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variableto skip download.
{ Error: read ETIMEDOUT
at _errnoException (util.js:1022:11)
at TLSWrap.onread (net.js:628:25) code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'read' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/anne/.npm/_logs/2018-08-28T11_59_47_508Z-debug.log
I tried npm install puppeteer --unsafe-perm=true
it didn't work. please let me know if you know how to solve it.
Try the below instead:
sudo npm install -g puppeteer --unsafe-perm=true --allow-root
Set npm mirror
npm config set puppeteer_download_host=https://npm.taobao.org/mirrors
npm i puppeteer
https://github.com/GoogleChrome/puppeteer/issues/1597#issuecomment-351945645
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With