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 in installing the package via npm #60

Open
3mRoshdy opened this issue Jan 27, 2020 · 3 comments
Open

Error in installing the package via npm #60

3mRoshdy opened this issue Jan 27, 2020 · 3 comments

Comments

@3mRoshdy
Copy link

OS Mac OSX
Whenever I try to install the package globally via NPM. I get this error

$ npm install -g bleak-detector

> [email protected] preinstall /Users/apple/.nvm/versions/node/v10.17.0/lib/node_modules/bleak-detector/node_modules/chrome-devtools-frontend
> if [ -z ${PUPPETEER_SKIP_CHROMIUM_DOWNLOAD+x} ]; then echo 'Run npm run install-deps instead' && exit 1; fi

Run npm run install-deps instead
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `if [ -z ${PUPPETEER_SKIP_CHROMIUM_DOWNLOAD+x} ]; then echo 'Run npm run install-deps instead' && exit 1; fi`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.

Keeping in mind that i'm currently using 3.7 and have installed mitmproxy. Any idea why this happens ?

@alvaro450
Copy link

This is due to the chrome-devtools-frontend dependency's preinstall script, you can work around this by running the below command prior to running npm i -g bleak-detector:
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

@RithvikChan
Copy link

The issue still occurs. Is there any other reason why this would happen?
image

@loveky
Copy link

loveky commented May 9, 2020

The issue still occurs. Is there any other reason why this would happen?
image

Try

sudo  PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true  npm i -g bleak-detector

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

4 participants