Git Product home page Git Product logo

nedb-repl's People

Contributors

g4b1nagy avatar lexf avatar nikolvs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

briancartercst

nedb-repl's Issues

seems like data is not updated if file changed on disk

Is there a way to refresh the data?

I have a process writing to my foo.db file and i run queries in nedb-repl it seems to not pick up new data.

For example running db.count().exec() repeated always shows same number but I know there are more documents being added.

TypeError: Object.defineProperty called on non-object

When doing a fresh install with npm i -g nedb-repl I would run into the following error when opening the cli:

nedb>

NeDB v1.8.0 - REPL v1.2.3
Enter .help for usage hints.
Connected to in-memory only datastore.
Use .open FILENAME to reopen on a persistent datastore.

nedb> TypeError: Object.defineProperty called on non-object
    at Function.defineProperty (<anonymous>)
    at Object.exports.setDatastore (/usr/local/lib/node_modules/nedb-repl/lib/repl/index.js:40:10)
    at async module.exports (/usr/local/lib/node_modules/nedb-repl/lib/repl/index.js:76:3)

The error caused all further commands to fail.

It seems to be a dependency problem caused by the vm2 package

I managed to fix it by changing "vm2": "^3.1.0" to "vm2": "3.1.0" in package.json and running npm i in /usr/local/lib/node_modules/nedb-repl

Add yarn support

Simply install this project with yarn, test and commit yarn.lock

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.