Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

ORBITDB_PATH is not respected #34

Open
@berkes

Description

@berkes
$ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions