plasma-umass / BLeak

BLeak: Automatically Debugging Memory Leaks in Web Applications
MIT License
408 stars 41 forks source link

Error in installing the package via npm #60

Open 3mRoshdy opened 4 years ago

3mRoshdy commented 4 years ago

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

$ npm install -g bleak-detector

> chrome-devtools-frontend@1.0.735172 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! chrome-devtools-frontend@1.0.735172 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 chrome-devtools-frontend@1.0.735172 preinstall script.

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

alvaro450 commented 4 years ago

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 commented 4 years ago

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

loveky commented 4 years ago

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