Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong route on npm install #3

Closed
CodingCarlos opened this issue Jan 27, 2017 · 0 comments
Closed

Wrong route on npm install #3

CodingCarlos opened this issue Jan 27, 2017 · 0 comments

Comments

@CodingCarlos
Copy link
Member

In the docs and the example, the way to include GoblinDB is

var GDB = require("./goblin");

But if yoy have installed goblin from npm (npm install goblindb) instead of cloning the github repo, this will throw an error. The right way to add it is with:

var GDB = require("./node_modules/goblindb/goblin");

I am sure that there is no difficult to export it as a common npm module, to instanciate it as easy as

var GDB = require("goblindb");

But I have not done any research about it. For now, this is just an easy solution until we found the answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant