-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels