Node.js Sample App Backend Tutorial won't connect

I installed the latest version of the couchbase server with all of the default options. I follow all of the instructions at https://docs.couchbase.com/nodejs-sdk/2.6/sample-application.html and https://docs.couchbase.com/nodejs-sdk/2.6/sample-app-backend.html but when I go to login (create user) I get the error: Error: cannot perform operations on a shutdown bucket.

It seems like the nodeJS app is not connecting to couchbase at all. I can change the string in this line:
var cluster = new couchbase.Cluster(‘couchbase://localhost’);
and I get the same error no matter what I set it to. Other things I have tried:
var cluster = new couchbase.Cluster(‘couchbase://localhost:8091’);
var cluster = new couchbase.Cluster(‘couchbase://127.0.0.1’);
var cluster = new couchbase.Cluster(‘couchbase://127.0.0.1:8091’);
var cluster = new couchbase.Cluster(‘localhost’);
var cluster = new couchbase.Cluster(‘localhost:8091’);
var cluster = new couchbase.Cluster(‘127.0.0.1’);
var cluster = new couchbase.Cluster(‘127.0.0.1:8091’);

There are no errors in the nodeJS console about failing to connect or anything like that. There is only the shutdown bucket error.

If anyone has any ideas why this may be happening I would appreciate the help.

Thank you.

You can try authenticate your cluster and open your bucket.
Like this:

var couchbase = require('couchbase');
var cluster = new couchbase.Cluster('couchbase://127.0.0.1');
// For Couchbase > 4.5 with RBAC Auth
cluster.authenticate('User', 'password')
var bucket = cluster.openBucket('bucket-name');

Thank you, I will try that.