npm-kubo
npm-kubo copied to clipboard
fix: better error handling for unsupported platform/os
Ipfs-desktop receives multiple errors when this package fails to run for whatever reason, and it would be nice if this package could do some proactive checks to determine if the environment it's being ran in is supported.
Previous ipfs-desktop errors:
- https://github.com/ipfs/ipfs-desktop/issues/2475
- https://github.com/ipfs/ipfs-desktop/issues/2458
- https://github.com/ipfs/ipfs-desktop/issues/2449
- https://github.com/ipfs/ipfs-desktop/issues/2425
- https://github.com/ipfs/ipfs-desktop/issues/2374
- https://github.com/ipfs/ipfs-desktop/issues/2367
- https://github.com/ipfs/ipfs-desktop/issues/2351
- https://github.com/ipfs/ipfs-desktop/issues/2252
Explanations of the problem:
- https://github.com/ipfs/ipfs-desktop/issues/2475#issuecomment-1535211113
It looks like you're on an older version of Darwin/macOS, which Go does not support, and, therefore, Kubo (the go package behind the go-ipfs npm package).
- https://github.com/ipfs/ipfs-desktop/issues/2252#issuecomment-1236883033
What version of macOS do you have? Versions before macOS 11 might not work correctly. Kubo, the underlying IPFS implementation used by IPFS Desktop, is built in Go, and Go only supports macOS 10.13+.
- https://github.com/ipfs/ipfs-desktop/issues/2458#issuecomment-1535223766
the version of Darwin showing for
require('os').release()
for you indicates you might be on macOS Sierra, which is not supported.
Other related issues:
- https://github.com/golang/go/issues/52112