Error on install
See original GitHub issueroot@bau:~# npm install -g coin-hive /usr/bin/coin-hive -> /usr/lib/node_modules/coin-hive/bin/coin-hive
puppeteer@0.10.2 install /usr/lib/node_modules/coin-hive/node_modules/puppeteer node install.js
fs.js:892 return binding.mkdir(pathModule._makeLong(path), ^
Error: EACCES: permission denied, mkdir ‘/usr/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium’
at Object.fs.mkdirSync (fs.js:892:18)
at Object.downloadRevision (/usr/lib/node_modules/coin-hive/node_modules/puppeteer/utils/ChromiumDownloader.js:97:10)
at Object.<anonymous> (/usr/lib/node_modules/coin-hive/node_modules/puppeteer/install.js:33:12)
at Module._compile (module.js:624:30)
at Object.Module._extensions…js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Function.Module.runMain (module.js:665:10)
at startup (bootstrap_node.js:187:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@0.10.2 install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the puppeteer@0.10.2 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! /root/.npm/_logs/2017-10-09T18_26_21_617Z-debug.log root@bau:~# node install.js module.js:473 throw err; ^
Im Using Deb 8.x with Node 8.x.x & npm
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (4 by maintainers)
Top GitHub Comments
A working solution for me:
sudo npm i -g coin-hive --unsafe-perm=true --allow-root
EDIT: Also you might need to install all puppeteer’s dependencies first:
sudo apt-get install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
Working, Thanks!
SOLVED