orbit-db-cli
orbit-db-cli copied to clipboard
ORBITDB_PATH is not respected
$ ORBITDB_PATH=/home/xxx/orbitdb npx orbitdb demo hello
_ _ _ _ _
| | (_) | | | |
___ _ __| |__ _| |_ __| | |__
/ _ \| '__| '_ \| | __| / _` | '_ \
| (_) | | | |_) | | |_ | (_| | |_) |
\___/|_| |_.__/|_|\__| \__,_|_.__/
Peer-to-Peer Database
https://github.com/orbitdb/orbit-db
> node "node_modules/.bin/orbitdb" create /orbitdb/demo docstore
Error: Cannot read property 'set' of undefined
Command failed: node "/home/xxx/orbitdb/node_modules/orbit-db-cli/src/bin" create /orbitdb/demo docstore
Error: Cannot read property 'set' of undefined
The error Cannot read property 'set' of undefined
is probably unrelated.
The issue comes with "node_modules/.bin/orbitdb" create /orbitdb/demo docstorewhere it appears the binary tries to make a docstore at
/orbitdb/demo`.
Same can be seen with another command:
$ ORBITDB_PATH=/home/xxx/orbitdb npx orbitdb create hello feed
Error: Cannot read property 'set' of undefined
$ file /home/ber/tmp/orbitdb
/home/xxxx/orbitdb: cannot open `/home/xxxx/orbitdb' (No such file or directory)
Note that the xxx
is to censor some directory-names only.