Install the latest go-ipfs binary
$ npm install go-ipfs-dep
Install the latest go-ipfs binary from http://dist.ipfs.io
npm install go-ipfs-dep --save
See IPFS getting-started. If anything goes wrong, try using: http://ipfs.io/docs/install.
Warning: The binary gets put in the go-ipfs folder inside the module folder.
Can be specified in package.json with a field go-ipfs.version, eg:
"go-ipfs": {
"version": "v0.4.13"
},
Can be specified in package.json with a field go-ipfs.version, eg:
"go-ipfs": {
"version": "v0.4.3",
"distUrl": "http://localhost:8080/ipfs/QmSoNtqW22htkg9mtHWNBvZLUEmqfq8su7957meS1iQfeL"
},
Where QmSoNtqW22htkg9mtHWNBvZLUEmqfq8su7957meS1iQfeL is the root of the distributions web site.
Or when run with node src/bin.js, the dist url can be passed via an environment variable GO_IPFS_DIST_URL, eg:
GO_IPFS_DIST_URL=http://localhost:8080/ipfs/QmSoNtqW22htkg9mtHWNBvZLUEmqfq8su7957meS1iQfeL node binsrc/bin.js
When used via node src/bin.js, you can specify the target platform, version and architecture via environment variables: TARGET_OS, TARGET_VERSION and TARGET_ARCH.
We fetch the versions dynamically from https://dist.ipfs.io/go-ipfs/versions and the OSes and architectures from https://dist.ipfs.io/go-ipfs/${VERSION}/dist.json.
Or via command line arguments in the order of:
node src/bin.js <version> <platform> <architecture> <install directory>
node src/bin.js v0.4.3 linux amd64 ./go-ipfs
© 2010 - cnpmjs.org x YWFE | Home | YWFE