Closed ianseyer closed 9 years ago
Hi @ianseyer, it looks like you have v1 of node-neo4j, when you want v2.
The template app's package.json specifies v2:
So maybe you manually installed node-neo4j at some point?
No harm — you can simply npm uninstall neo4j
then npm install
, and that should do the trick (assuming your package.json matches what I linked above).
Hope this helps!
D'oh!
thank you :)
No prob, glad that helped. =)
Hello, I seem to be getting the same error, although I believe I have version 2.14.7 (this is what is received when I use "npm node-neo4j --version")
Below is the exact error. Thank you in advance!
db.cypher({
^
TypeError: db.cypher is not a function
at Object.<anonymous> ([path]/[file].js:9:4)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:134:18)
at node.js:961:3
Can you console.log(db)
?
Oh, node-neo4j
isn't this package. This package is just neo4j
.
Hi, I'm having a similar issue to @jaitkin.
Install and init:
var neo4j = require('neo4j');
var db = new neo4j.GraphDatabase('http://user:pass@localhost:7474');
npm neo4j --version
shows: 2.14.4
console.log(db)
shows:
GraphDatabase {
reviveJSON: [Function],
url: 'http://user:pass@localhost:7474',
_request:
{ get: [Function],
post: [Function],
put: [Function],
del: [Function],
head: [Function] },
_root: null,
_services: null }
Nevermind, even though npm neo4j --version
shows: 2.14.4
, my package.json
had version ^1.1.11
. Update manually to 2.0.0-RC2
fixed the problem.
Eek, I had the exact same problem. "npm install neo4j" was installing 1.1.11, even though --version was reporting 3.3.12.
Manually upgraded using:
npm uninstall neo4j
npm install neo4j@2.0.0-RC1
Im running Ubuntu Linux via an amazon AWS instance. Installed the system fresh 2 hours ago, and everything was up to date.
@JohnLonginotto +1, it worked! Saved me a lot of time
Hi there!
I'm following your template, however I seem to have hit a snag (two, actually, and I assume they are related):
db.createConstraint
is not a function error. I commented it out, and was able tonode app.js
.However, then, trying to access any data (specifically via REST) gives me
cypher is not a function
for db.cypher.You can see it re-created in the REPL here: