best-resume-ever
best-resume-ever copied to clipboard
Error when running 'npm install'
Case
- BUG
- HELP QUESTION
Issue
When I try run npm install, I get this error:
> [email protected] install /home/andrew/Documents/Code/GitHub/best-resume-ever/node_modules/puppeteer
> node install.js
Segmentation fault
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 139
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 139
npm ERR!
npm ERR! Failed at the [email protected] 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
Try install Debian's chromium package before:
sudo apt-get install chromium
then, in the best-resume-ever source directory
npm install
good luck
I already have Chromium installed and I have installed both puppeteer and puppeteer-core
I am experiencing the same problem.
I am running node v10.16.3
, npm 6.13.2
(all nvm) and even installed [email protected]
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
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
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