observing / thor

The WebSocket god of thunder
MIT License
1.29k stars 154 forks source link

Unable to "npm install -g thor" #45

Open john-doherty opened 7 years ago

john-doherty commented 7 years ago

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 commented 7 years ago

Even I am having the same error on my ubuntu 16.04

mcary commented 7 years ago

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 commented 7 years ago

Anyone found a fix for this?

rszalski commented 7 years ago

@john-doherty yes

TL; DR;

Install the package from the source:

  1. git clone git@github.com: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 https://github.com/observing/thor/commit/6940acfb22b8d6334139f199c22e0e4b25a84297. 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 commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

👍

dmirogin commented 7 years ago

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

ihemantkumar commented 4 years ago

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?