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.

Need help installing puppeteer

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: none (need help installing)
  • Platform / OS version: Windows 10
  • URLs (if applicable):
  • Node.js version: 10.9.0
  • npm version: 6.2.0

What steps will reproduce the problem?

Please include code that reproduces the issue.

  1. npm i puppeteer causes an error

ERROR: Failed to download Chromium r579032! Set “PUPPETEER_SKIP_CHROMIUM_DOWNLOAD” env variable to skip download. { Error: unable to verify the first certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1047:34) at TLSSocket.emit (events.js:182:13) at TLSSocket._finishInit (_tls_wrap.js:629:8) code: ‘UNABLE_TO_VERIFY_LEAF_SIGNATURE’ } npm WARN Desktop@1.0.0 No description npm WARN Desktop@1.0.0 No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! puppeteer@1.7.0 install: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the puppeteer@1.7.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! C:\Users\short.DESKTOP-GAV8MA2\AppData\Roaming\npm-cache_logs\2018-08-18T21_19_58_834Z-debug.log

I also tried npm i puppeteer on Windows Subsystem Ubuntu (version 16.04.4 LTS) and i get the same error.

Any suggestions on how to resolve this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

18reactions
hasibsahibzadacommented, Aug 20, 2018

You can install it by setting --unsafe-perm=true parameter as: npm install puppeteer --unsafe-perm=true

Set to true to suppress the UID/GID switching when running package scripts. If set explicitly to false, then installing as a non-root user will fail.

According to this

2reactions
notaphplovercommented, Sep 13, 2018

@aslushnikov Thank you 😃. I was able to install puppeteer. It was completely my fault. Thank you for your time and sorry.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Puppeteer - npm
puppeteer is a product for browser automation. When installed, it downloads a version of Chromium, which it then drives using puppeteer-core .
Read more >
Puppeteer quick start - Chrome Developers
Install and run Puppeteer.
Read more >
An Excellent Learning Guide of Puppeteer Tutorial 4 & 5
Install Editor for Puppeteer: ... Step1# Downloadd VSCode: Click here to open the download link and download the desire version of VSCode Installer...
Read more >
How to Use Puppeteer With Node.js - freeCodeCamp
Download and install Node.js; Install Puppeteer; Install Mocha; Install Chai; Install Selenium Webdriver. You only need to complete the last ...
Read more >
Troubleshooting - Puppeteer
For the former, we do not support deprecated versions of Node.js. For the latter, usually ... For example,. PUPPETEER_CACHE_DIR=$(pwd) npm install puppeteer
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