Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running 'npm install' #340

Open
andrewboyley opened this issue Apr 25, 2019 · 5 comments
Open

Error when running 'npm install' #340

andrewboyley opened this issue Apr 25, 2019 · 5 comments

Comments

@andrewboyley
Copy link

Case

  • BUG
  • HELP QUESTION

Issue

When I try run npm install, I get this error:

> puppeteer@1.8.0 install /home/andrew/Documents/Code/GitHub/best-resume-ever/node_modules/puppeteer
> node install.js

Segmentation fault
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 139
npm ERR! puppeteer@1.8.0 install: `node install.js`
npm ERR! Exit status 139
npm ERR! 
npm ERR! Failed at the puppeteer@1.8.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Info

  • Operating System: Ubuntu 19.04
  • Node-Version: v12.0.0

Reproduce

npm install

@miguel7penteado
Copy link

miguel7penteado commented Apr 30, 2019

Try install Debian's chromium package before:
sudo apt-get install chromium
then, in the best-resume-ever source directory
npm install
good luck

@andrewboyley
Copy link
Author

I already have Chromium installed and I have installed both puppeteer and puppeteer-core

@Kudlaty01
Copy link

Kudlaty01 commented Dec 3, 2019

I am experiencing the same problem.
I am running node v10.16.3, npm 6.13.2 (all nvm) and even installed puppeteer@2.0.0 globally.
Nothing helped though.
It just goes

Downloading Chromium r588429 - 103.7 Mb [====================] 100% 0.0s
Chromium downloaded to /home/kudlaty01/Dokumenty/priv/CV/best-resume-ever/node_modules/puppeteer/.local-chromium/linux-588429
Aborted

and then the same as in this issue's first message. Adjusting puppeteer version does not help either.
dpkg -l | grep chromium leaves the following output:

ii  chromium                                78.0.3904.108-1~deb10u1              amd64        web browser
ii  chromium-common                         78.0.3904.108-1~deb10u1              amd64        web browser - common resources used by the chromium packages
ii  chromium-l10n                           78.0.3904.108-1~deb10u1              all          web browser - language packs
ii  chromium-sandbox                        78.0.3904.108-1~deb10u1              amd64        web browser - setuid security sandbox for chromium

@Himel55
Copy link

Himel55 commented Feb 5, 2021

I had the same issue when trying to install on Ubuntu 20.04 LTS WSL2.

Updating to the latest LTS nodejs v14.15.4 fixed my issue. FYI using npm v6.14.10

@seokbeomKim
Copy link

seokbeomKim commented Dec 7, 2021

I had a same issue on my Ubuntu environment and I managed to install the package with following commands.

sudo apt install -y chromium-browser
echo 'ignore-scripts=true' >> ~/.npmrc
node node_modules/puppeteer/install.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants