I am trying to test couchnode "Couchbase Node.js Client" V2.0.0 but it does not work.
I have a couchbase installed with 2 buckets : default and beer-sample
I follow the README : couchnode
$ npm install couchbase
The example in the README works fine and displays correctly {name: Frank}
but when I launch the example.js, it does not work
I tried config.json empty and configured with
{ "bucket":"default", "host":"127.0.0.1:8091"}
$ node example.js
/home/clodio/node/node_modules/couchbase/example.js:16
bucket = new couchbase.Connection(config, function(err) {
^
TypeError: undefined is not a function
at Object.<anonymous> (/home/clodio/node/node_modules/couchbase/example.js:16:10)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
What's wrong?
Note : I read the Error Connecting to CouchBase from Node.js using Couchnode module v.1.2.4 but it is not the same problem