question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: Failed to set up Chromium r768783! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.

See original GitHub issue

Hello,

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:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
michelefioretticommented, Aug 25, 2020

It works if I run it as a chunk. Thank you for all your help!

0reactions
astefanutticommented, Aug 25, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found