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

"sudo npm install -g homebridge-harmonyhub" should just work #126

Open
David-Noble-at-work opened this issue Feb 11, 2018 · 7 comments
Open

Comments

@David-Noble-at-work
Copy link

I've been looking at the workarounds for this problem and expect I will get one of the two options to work. I do however think that this issue merits attention. Please address this problem:

npm ERR! code 1
npm ERR! Command failed: /opt/local/bin/git clone -q git://github.com/e7hz3r0/harmonyhubjs-client.git /Users/<username>/.npm/_cacache/tmp/git-clone-53f267a7
npm ERR! /Users/<username/.npm/_cacache/tmp/git-clone-53f267a7/.git: Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/thenobles/.npm/_logs/2018-02-11T22_31_17_776Z-debug.log

Thank you.

@felkahlout
Copy link

+1
same issue

@tsantos87
Copy link

+1
same issue

@donjohann
Copy link

+1
same issue

@rogerioth
Copy link

+1
same issue

to solve this, I had to switch to root, and run everything from there (homebridge, the harmony plugin, etc)

@nwoodman
Copy link

nwoodman commented Mar 3, 2018

https://docs.npmjs.com/getting-started/fixing-npm-permissions. #2 worked for me.

Summary
Back-up your computer before you start.

Make a directory for global installations:

mkdir ~/.npm-global
Configure npm to use the new directory path:

npm config set prefix '~/.npm-global'
Open or create a ~/.profile file and add this line:

export PATH=~/.npm-global/bin:$PATH
Back on the command line, update your system variables:

source ~/.profile

@recipriversexcluson
Copy link

su -l
npm install -g homebridge-harmonyhub

This should do it

@DJay-X
Copy link

DJay-X commented Jun 21, 2018

sudo chown -R $USER /usr/local && npm install homebridge-harmonyhub -g

Worked for me.

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

8 participants