Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Failed to download Chromium r515411 #1597
I came across an problem like below when i tried to run npm i puppeteer, is there any solution?
firstname.lastname@example.org install /Users/guipeng/Desktop/ldl/puppeteer/node_modules/puppeteer
ERROR: Failed to download Chromium r515411! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
# // > https://npm.taobao.org/mirrors # // export PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors # // set PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors npm config set puppeteer_download_host=https://npm.taobao.org/mirrors npm i puppeteer
npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm i puppeteer
I tried the above method, But it did not work
How can I resolve it?
I do not know if this error was caused by a manual installation。
It looks like there's a something that prevents pptr from network access. If there's a proxy, you can set it up with env variables.
@kiki882727 you're trying to run an old chromium. If you're using pptr 1.0.0, try running Chrome Canary instead.
referenced this issue
Jan 21, 2018
Error: Download failed: server returned code 407. URL: https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/526987/chrome-win32.zip
Downloaded the file from https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/526987/chrome-win32.zip
Made sure it is downloadale from below location from a local webserver
set this in .npmrc
Did the trick for me; a quick workaround if some one needs