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.

Failed at the puppeteer@5.5.0 install script

See original GitHub issue

Facing this issue while trying to install as root

sh-3.2# npm install -g puppeteer

puppeteer@5.5.0 install /usr/local/lib/node_modules/puppeteer node install.js

ERROR: Failed to set up Chromium r818858! Set “PUPPETEER_SKIP_DOWNLOAD” env variable to skip download. [Error: EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/puppeteer/.local-chromium’] { errno: -13, code: ‘EACCES’, syscall: ‘mkdir’, path: ‘/usr/local/lib/node_modules/puppeteer/.local-chromium’ } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! puppeteer@5.5.0 install: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the puppeteer@5.5.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! /var/root/.npm/_logs/2020-11-19T05_52_30_535Z-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:5

github_iconTop GitHub Comments

13reactions
xxg233commented, Nov 20, 2020

the problem may be caused by your internet can’t download the newest Chromium,so you can use npm install puppeteer --ignore-scripts to skip download

and then,when you use the script ,you should set the executablePath like

const path = require('path');
// the browser path
const path = path.resolve('C:\Program Files\Google\Chrome\Application\chrome.exe')

const browser = await puppeteer.launch({
    executablePath: path
})
3reactions
mahdifadaeecommented, Jan 27, 2021

the problem may be caused by your internet can’t download the newest Chromium,so you can use npm install puppeteer --ignore-scripts to skip download

and then,when you use the script ,you should set the executablePath like

const path = require('path');
// the browser path
const path = path.resolve('C:\Program Files\Google\Chrome\Application\chrome.exe')

const browser = await puppeteer.launch({
    executablePath: path
})

Hello Thank you for your solution. I did the first command (npm install puppeteer --ignore-scripts) and it worked well. But I do not know how to run this code/command. Could you please explain more? I am not familiar with that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

puppeteer@5.5.0 install: `node install.js` on M1 - Stack Overflow
I've been trying to work on a code I wrote a couple of months back ran into the following error ...
Read more >
Error deploying npm package that uses puppeteer - Pipedream
Failed at the puppeteer@5.5.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output ......
Read more >
Troubleshooting - Puppeteer
Puppeteer passes --disable-extensions flag by default and will fail to launch when such policies ... Make sure all the necessary dependencies are installed....
Read more >
Error in rendering reports - jsreport forum
npm WARN schema-utils@0.4.5 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none ... Failed at the puppeteer@1.5.0 install script.
Read more >
Help with config issue ... installing html2pdf and no longer ...
Step 15/16 : RUN npm install --no-optional --production ... Failed at the puppeteer@19.1.0 postinstall script. npm ERR!
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