Open David-Noble-at-work opened 6 years ago
+1 same issue
+1 same issue
+1 same issue
+1 same issue
to solve this, I had to switch to root, and run everything from there (homebridge, the harmony plugin, etc)
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
su -l npm install -g homebridge-harmonyhub
This should do it
sudo chown -R $USER /usr/local && npm install homebridge-harmonyhub -g
Worked for me.
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:
Thank you.