maddox / harmony-api

🗼 A simple server allowing you to query/control multiple local Harmony Home Hubs over HTTP or MQTT
MIT License
394 stars 115 forks source link

not a valid repository name #84

Closed rourke closed 6 years ago

rourke commented 6 years ago

I'm trying to run bootstrap on my Raspberry Pi 1 B+ but npm is giving me the following errors:

npm ERR! git clone git@github.com:github:maddox/harmonyhubjs-client Cloning into bare repository '/home/pi/.npm/_git-remotes/git-github-com-github-maddox-harmonyhubjs-client-def8ff3d'...
npm ERR! git clone git@github.com:github:maddox/harmonyhubjs-client fatal: remote error:
npm ERR! git clone git@github.com:github:maddox/harmonyhubjs-client    is not a valid repository name
npm ERR! git clone git@github.com:github:maddox/harmonyhubjs-client   Email support@github.com for help
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.41+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /tmp/harmony-api-2.3.5
npm ERR! node -v v4.8.2
npm ERR! npm -v 1.4.21
npm ERR! code ETARGET
npm ERR! Error: EACCES: permission denied, open 'npm-debug.log'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES: permission denied, open 'npm-debug.log']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'open',
npm ERR!   path: 'npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 4.9.41+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /tmp/harmony-api-2.3.5
npm ERR! node -v v4.8.2
npm ERR! npm -v 1.4.21
npm ERR! path npm-debug.log
npm ERR! syscall open
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! stack Error: EACCES: permission denied, open 'npm-debug.log'
npm ERR! stack     at Error (native)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /tmp/harmony-api-2.3.5/npm-debug.log
npm ERR! not ok code 0

As far as I know I have all the requirements installed. I also authenticated towards github.

rourke commented 6 years ago

Nevermind, I found the solution. My npm was outdated.

For some reason the latest version of npm for my raspberry pi was v1.4.21, even after an apt-get update and apt-get upgrade. I had to use sudo npm install -g npm twice to get to the latest version.

badokun commented 5 years ago

In a completely unrelated project I struggled with this for hours... following @rourke exact steps I finally got around this blocker. Thanks!