ERROR: Failed to set up Chromium r768783! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
See original GitHub issueHello,
I’m trying to set up decktape
by running
sudo npm install -g decktape
I get the following error
Password: /usr/local/bin/decktape -> /usr/local/lib/node_modules/decktape/decktape.js
> puppeteer@5.1.0 install /usr/local/lib/node_modules/decktape/node_modules/puppeteer
> node install.js
ERROR: Failed to set up Chromium r768783! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
[Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/decktape/node_modules/puppeteer/.local-chromium'] {
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/usr/local/lib/node_modules/decktape/node_modules/puppeteer/.local-chromium'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@5.1.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the puppeteer@5.1.0 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/michelefioretti/.npm/_logs/2020-08-24T16_26_42_443Z-debug.log
Any idea on how to solve this issue? Thank you so much.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
puppeteer not able to install: ERROR: Failed to set up ...
ERROR : Failed to set up Chromium r782078! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download. Error: self signed certificate in ...
Read more >ERROR: Failed to set up Chromium r800071! Set ... - GitHub
... node install.js ERROR: Failed to set up Chromium r800071! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download. { [Error: EACCES: ...
Read more >ERROR: Failed to download Chromium r686378!
Then you would utilize Puppeteers Environment Variables to skip the Chromium download and point it to where you manually downloaded Chromium.
Read more >How to skip Chromium download in Puppeteer? - DEV ...
Step 1 - Set the environment variables. Whenever you install Puppeteer, it will first check for the environment variables listed below:.
Read more >Troubleshooting - Puppeteer
If you get an error that looks like this when trying to launch Chromium: (node:15505) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works if I run it as a chunk. Thank you for all your help!
You cannot provide a .Rmd file to decktape. It has to be a HTML file, as it is done at:
https://github.com/ScPoEcon/ScPoEconometrics-Slides/blob/f706a9567aafa448b71eba5bdff3145b12aa1838/chapter1/chapter1.Rmd#L865