atek-cloud / spork

[CLI app] Peer-to-peer socket magic in the air
https://spork.sh
MIT License
289 stars 9 forks source link

failed to install from npm #11

Open beenotung opened 2 years ago

beenotung commented 2 years ago

I tried to install with npm as guided on the website:

$ npm i -g @atek-cloud/spork

But I got below error:

npm ERR! code ETARGET
npm ERR! notarget No matching version found for dht-rpc@next.
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! A complete log of this run can be found in:

Then I tried to clone this repo then install and build, got typescript error but the dist/bin.js is functional.

$ pnpm i
$ npm link
$ spork
spork - A p2p sockets multi-tool
Commands:
   spork bind [public-key] - Bind a p2p socket as a proxy to a local or remote server.
   spork gateway - Create an HTTP server that routes to p2p sockets by subdomain.
   spork serve {path} - Serve a folder as a static HTTP site over p2p sockets.
   spork beam [passphrase] - Create a encrypted network pipe.

Below is the resolved version when installed locally:

$ pnpm why dht-rpc
Legend: production dependency, optional only, dev only

@atek-cloud/spork@1.3.3 /zfs-home/beenotung/workspace/github.com/atek-cloud/spork

dependencies:
@atek-cloud/network 0.0.5
└─┬ @hyperswarm/dht 5.0.0-rc.12
  └── dht-rpc 5.0.0-rc.7
hyperbeam 2.0.1
└─┬ @hyperswarm/dht 5.0.25
  └── dht-rpc 5.0.3