What version of the Node.js SDK though? You gave me the version of Node.js, but not the Couchbase SDK version. Also are you using Couchbase Server CE or EE?
Its 2.1.3. Got this working. The documentation says,
var N1qlQuery = require(‘couchbase’).N1qlQuery;
var myBucket = myCluster.openBucket();
var query = N1qlQuery.fromString(‘SELECT * FROM default’);
This didnt work me till I added the bucket name in openBucket();
var myBucket = myCluster.openBucket(‘default’, function(err) {}); did the trick.