Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to "npm install -g thor" #45

Open
john-doherty opened this issue Jan 18, 2017 · 11 comments
Open

Unable to "npm install -g thor" #45

john-doherty opened this issue Jan 18, 2017 · 11 comments

Comments

@john-doherty
Copy link

I get the following error on a mac:

Command failed: git clone --template=/Users/JD/.npm/_git-remotes/_templates --mirror git://github.com/3rd-Eden/ws.git /Users/JD/.npm/_git-remotes/git-github-com-3rd-Eden-ws-git-2e9f11e5

@0xparashar
Copy link

Even I am having the same error on my ubuntu 16.04

@mcary
Copy link

mcary commented Jan 23, 2017

Seems this dependency has been removed? Is there another variation available?

npm ERR! git clone git://github.com/3rd-Eden/ws.git fatal: remote error: 
npm ERR! git clone git://github.com/3rd-Eden/ws.git   Repository not found.
npm ERR! Error: Command failed: Cloning into bare repository '/Users/marcel/.npm/_git-remotes/git-github-com-3rd-Eden-ws-git-3a6cde0f'...
npm ERR! fatal: remote error: 
npm ERR!   Repository not found.

@john-doherty
Copy link
Author

Anyone found a fix for this?

@rszalski
Copy link

rszalski commented Jan 27, 2017

@john-doherty yes

TL; DR;

Install the package from the source:

  1. git clone [email protected]:observing/thor.git
  2. cd thor/
  3. npm install -g .

It seems that in the HEAD version of thor has a fixed dependency on the ws package. The commit that introduced this was 6940acf. It also seems that this was not a fix for a missing repo, just an ordinary switch to a different fork (that itself has more fixes). Probably @3rd-Eden 's fork has been removed after the switch.

Now thor just needs to be updated on NPM.

@john-doherty
Copy link
Author

Unable to clone, getting the following error:

Cloning into 'thor'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

@rszalski
Copy link

rszalski commented Feb 13, 2017

@john-doherty Look's like you don't have a SSH key uploaded to Github or added to ssh-agent (https://help.github.com/articles/connecting-to-github-with-ssh/).

Try with HTTPS: git clone https://github.com/observing/thor.git

@alecz20
Copy link

alecz20 commented Mar 2, 2017

Seeing as Node.js is the only mentioned dependency, I installed the stable Node.js on Windows, and then ran the command npm install -g thor but it failed saying git is not found.

...
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! code ENOGIT

npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
...

Since git is not mentioned as a dependency, I figured I didn't install Node.js correctly, but installing other Websocket packages works. Should Open a separate issue?

@rszalski
Copy link

rszalski commented Mar 5, 2017

@alecz20 Indeed Git is required. You could modify the README to mention this explicitly (via PR, will be faster than opening an issue :). To fix this, you just need Git installed on your Windows box, see: https://github.com/npm/npm/wiki/Troubleshooting#no-git

@krcgk
Copy link

krcgk commented Mar 12, 2017

👍

alecz20 added a commit to alecz20/thor that referenced this issue Mar 14, 2017
Documented the dependency on Git and an alternate way to install using git and npm locally (solution from issue observing#45
@dmirogin
Copy link

npm install -g https://github.com/observing/thor

@ihemantkumar
Copy link

ihemantkumar commented Jun 26, 2020

I somehow installed the thor this is how: but it is not working for me.
# thor --amount 2000 ws://localhost:8443 wss://localhost:8443 /usr/bin/env: node: No such file or directory
I am having this issue. Does anyone know how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants