pi@raspberrypi:/var/lib/harmony-api $ sudo script/bootstrap
npm ERR! git clone git@github.com:github:maddox/harmonyhubjs-client Cloning into bare repository ‘/root/.npm/_git-remotes/git-github-com-github-maddox-harmonyhubjs-client-def8ff3d’…
npm ERR! git clone git@github.com:github:maddox/harmonyhubjs-client Permission denied (publickey).
npm ERR! git clone git@github.com:github:maddox/harmonyhubjs-client fatal: Could not read from remote repository.
npm ERR! git clone git@github.com:github:maddox/harmonyhubjs-client
npm ERR! git clone git@github.com:github:maddox/harmonyhubjs-client Please make sure you have the correct access rights
npm ERR! git clone git@github.com:github:maddox/harmonyhubjs-client and the repository exists.
npm ERR! notarget No compatible version found: harmonyhubjs-client@'github:maddox/harmonyhubjs-client#for-harmony-api’
npm ERR! notarget Valid install targets:
npm ERR! notarget [“1.1.2”,“1.1.3”,“1.1.4”,“1.1.5”,“1.1.6”,“1.1.7”,“1.1.8”,“1.1.9”,“1.1.10”]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn’t exist.
npm ERR! System Linux 4.9.59-v7+
npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” "install"
npm ERR! cwd /var/lib/harmony-api
npm ERR! node -v v4.8.2
npm ERR! npm -v 1.4.21
npm ERR! code ETARGET
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/lib/harmony-api/npm-debug.log
npm ERR! not ok code 0
pi@raspberrypi:/var/lib/harmony-api $
Glad you still have your sense of humor Sir.
Once again thanks for your help.
Here is the output. What should I do next?
Installing harmony-api…
sed: can’t read : No such file or directory
pi@raspberrypi:/var/lib/harmony-api $ sudo npm install -g npm
npm WARN package.json path-is-inside@1.0.2 No README data
npm WARN package.json sorted-object@2.0.1 No README data
npm WARN package.json config-chain@1.1.11 No license field.
npm WARN package.json qrcode-terminal@0.11.0 No license field.
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
npm@5.6.0 /usr/local/lib/node_modules/npm
pi@raspberrypi:/var/lib/harmony-api $ sudo script/bootstrap
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b for-harmony-api git://github.com/maddox/harmonyhubjs-client.git /root/.npm/_cacache/tmp/git-clone-0226b930
npm ERR! fatal: could not create leading directories of ‘/root/.npm/_cacache/tmp/git-clone-0226b930’: Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-02-17T16_57_12_348Z-debug.log
pi@raspberrypi:/var/lib/harmony-api $
It appeared to load one addition file. So I tried the update again and got this
pi@raspberrypi:/var/lib/harmony-api $ sudo su
root@raspberrypi:/var/lib/harmony-api# npm install -g npm
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
npm@5.6.0
updated 1 package in 93.422s
root@raspberrypi:/var/lib/harmony-api# sudo script/bootstrap
npm WARN deprecated node-xmpp-stanza@1.1.0: use @xmpp/xml package https://www.npmjs.com/package/@xmpp/xml
npm WARN deprecated node-xmpp-jid@2.3.0: use @xmpp/jid package https://www.npmjs.com/package/@xmpp/jid
npm notice created a lockfile as package-lock.json. You should commit this file.
added 249 packages in 84.449s
==> Creating your config. Please edit config/config.json.
Finished setting up harmony-api! run it with script/server or install it with script/install.
root@raspberrypi:/var/lib/harmony-api#
root@raspberrypi:/var/lib/harmony-api# sudo script/install
Installing harmony-api…
sed: can’t read : No such file or directory
root@raspberrypi:/var/lib/harmony-api#
It turned on my TV. Should I be concerned with this output. It keeps repeating.
Error: bind EADDRINUSE 0.0.0.0:5224
at Object.exports._errnoException (util.js:907:11)
at exports._exceptionWithHostPort (util.js:930:20)
at dgram.js:214:18
at nextTickCallbackWith3Args (node.js:522:9)
at process._tickCallback (node.js:428:17)
at Function.Module.runMain (module.js:443:11)
at startup (node.js:140:18)
at node.js:1043:3
error: Forever detected script exited with code: 1
error: Script restart attempt #45
Starting discovery.
events.js:141
throw er; // Unhandled ‘error’ event
^
Hmmmm, I’m not sure about the error output. Could just be the Pi or something to do with the version of nodejs it is running. But, if it’s managing your devices and you can see the web output (http://[your pi address]:8282), then you should be good to go.
Now, what you need to do is ctrl +c to kill that process and see if you can get it to start via the service (sudo systemctl start harmony-api).