luisiam / homebridge-liftmaster2

LiftMaster Plugin for HomeBridge (API 2.0): https://github.com/nfarina/homebridge
61 stars 15 forks source link

Unable to download and install LIFTMASTER2 platform! #33

Open jagpreetbatth opened 6 years ago

jagpreetbatth commented 6 years ago

Typed in following command in terminal: iMac-2017:~ xxxxxxxx$ npm install -g git+https://github.com/luisiam/homebridge-liftmaster2.git RESPONSE: pm ERR! git clone --template=/Users/xxxxxxxx/.npm/_git-remotes/_templates --mirror https://github.com/luisiam/homebridge-liftmaster2.git /Users/xxxxxxxxx/.npm/_git-remotes/git-https-github-com-luisiam-homebridge-liftmaster2-git-354ff2dc: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun npm ERR! Darwin 17.0.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "git+https://github.com/luisiam/homebridge-liftmaster2.git" npm ERR! node v6.11.4 npm ERR! npm v3.10.10 npm ERR! code 1

Command failed: git clone --template=/Users/xxxxxxxxxx/.npm/_git-remotes/_templates --mirror https://github.com/luisiam/homebridge-liftmaster2.git /Users/xxxxxxx/.npm/_git-remotes/git-https-github-com-luisiam-homebridge-liftmaster2-git-354ff2dc npm ERR! xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun npm ERR! npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

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

TAKEN OUT MY USER NAME(xxxxxxx) FOR PRIVACY

Currently running homebridge-chamberlain as accessory with config.json listed below: OPENS AND CLOSES MYQ GARAGE HUB CONNECTED GARAGE BUT KEEPS SAYING: "OPENING" allllll the time!! CLICK IN HOME KIT AND IT CLOSES AND CLOSED STATE IS FINE...BUT OPENING OPENING OPEING even tho its done opening a long time ago!

{ "accessory": "Chamberlain", "name": "Garage Door", "username": "xxxxxxxxx@hotmail.com", "password": "xxxxxxxxxxx" } ] }

CANT INSTALL? WHY??

Running macOS High Sierra version 10.13 on an iMac (Retina 5K, 27-inch, 2017)

jagpreetbatth commented 6 years ago

Anyone get github online version of liftmaster2 to download? I’m still facing same error thread.

jagpreetbatth commented 6 years ago

invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

jagpreetbatth commented 6 years ago

Solution:

Open Terminal, and run the following:

xcode-select --install

This will download and install xcode developer tools and fix the problem. The problem is that one needs to explicitly agree to the license agreement.

ALL SET!

vpsails commented 6 years ago

I was able to use the following path for my rpi3: sudo npm install -g homebridge-liftmaster2

There is obviously something wrong with the web access link provided in the instructions