KraigM / homebridge-harmonyhub

HomeBridge Plugin for Logitech Harmony Hub
181 stars 52 forks source link

Install problem under macOS 10.13.4 #135

Open suxus-zz opened 6 years ago

suxus-zz commented 6 years ago

Hello

I have problem to install the plugin under macOS HighSierra 10.13.4.

macmini:~ administrator$ npm -v 4.6.1

sudo npm install -g homebridge-harmonyhub npm WARN addRemoteGit e7hz3r0/harmonyhubjs-client resetting remote /Users/administrator/.npm/_git-remotes/git-github-com-e7hz3r0-harmonyhubjs-client-git-9594d033 because of error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun npm ERR! git clone --template=/Users/administrator/.npm/_git-remotes/_templates --mirror git://github.com/e7hz3r0/harmonyhubjs-client.git /Users/administrator/.npm/_git-remotes/git-github-com-e7hz3r0-harmonyhubjs-client-git-9594d033: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun npm WARN addRemoteGit e7hz3r0/harmonyhubjs-client resetting remote /Users/administrator/.npm/_git-remotes/git-https-github-com-e7hz3r0-harmonyhubjs-client-git-a307e099 because of error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun npm ERR! git clone --template=/Users/administrator/.npm/_git-remotes/_templates --mirror https://github.com/e7hz3r0/harmonyhubjs-client.git /Users/administrator/.npm/_git-remotes/git-https-github-com-e7hz3r0-harmonyhubjs-client-git-a307e099: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun npm WARN addRemoteGit e7hz3r0/harmonyhubjs-client resetting remote /Users/administrator/.npm/_git-remotes/git-github-com-e7hz3r0-harmonyhubjs-client-git-152dc479 because of error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun npm ERR! git clone --template=/Users/administrator/.npm/_git-remotes/_templates --mirror git@github.com:e7hz3r0/harmonyhubjs-client.git /Users/administrator/.npm/_git-remotes/git-github-com-e7hz3r0-harmonyhubjs-client-git-152dc479: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun npm ERR! code 1 npm ERR! Command failed: git clone --template=/Users/administrator/.npm/_git-remotes/_templates --mirror git@github.com:e7hz3r0/harmonyhubjs-client.git /Users/administrator/.npm/_git-remotes/git-github-com-e7hz3r0-harmonyhubjs-client-git-152dc479 npm ERR! xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun npm ERR!

npm ERR! A complete log of this run can be found in: npm ERR! /Users/administrator/.npm/_logs/2018-05-14T15_22_51_562Z-debug.log

I don't know whats wrong, any ideas what's the problem?

Greeting

suxus-zz commented 6 years ago

Hello

Now i try install the plugin on my Pi and i have also a error.

pi@raspberrypi:/ $ sudo npm install -g homebridge-harmonyhub npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror git@github.com:e7hz3r0/harmonyhubjs-client.git /root/.npm/_git-remotes/git-github-com-e7hz3r0-harmonyhubjs-client-git-152dc479: undefined npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror git@github.com:e7hz3r0/harmonyhubjs-client.git /root/.npm/_git-remotes/git-github-com-e7hz3r0-harmonyhubjs-client-git-152dc479: undefined npm ERR! Linux 4.14.34-v7+ npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "homebridge-harmonyhub" npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm ERR! code ENOGIT

npm ERR! not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a problem with npm itself. npm ERR! Please check if you have git installed and in your PATH.

npm ERR! Please include the following file with any support request: npm ERR! /npm-debug.log

I hope someone can help me.

Greeting

orefalo commented 6 years ago

same issue