question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

root@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:closed
  • Created 6 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

13reactions
ghostcommented, Oct 10, 2017

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

0reactions
FlareNetworkcommented, Oct 10, 2017

Working, Thanks!

SOLVED

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Right-click the Windows Installer service, and then click Start. The service should start without errors. Try to install or to uninstall again.
Read more >
How to Fix Microsoft Windows 10 Installation Error Codes
Error Codes while installing Windows 10 and their corresponding solutions · Go to C: drive. · Click View and check the Hidden Files...
Read more >
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >
[SOLVED] Windows 10 Installation Has Failed - Driver Easy
The “Windows 10 installation has failed” error could be triggered when the installer tries to repeatedly copy the files in a certain folder....
Read more >
[SOLVED] Windows 10 Could Not Complete the Installation + ...
If you come across the error Windows 10 installation has failed, you can choose to install Windows 10 in Clean Boot. Now, here...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found