If you came to this page via a book’s portal and it has pre-filled part of the title and tags for you please only add what you need to after the pre-filled text in the title, this is usually a description of what you are posting and the page number so it follows this format:
Title: Vector Search with JavaScript
I have cloned the git repo from GitHub - hummusonrails/vector-example-blog-platform: Fully featured Medium.com clone with vector search functionality.
Unfortunately, I can not start it (on main branch):
> npm install; npm run dev
...
/Users/markus/git/vector-example-blog-platform/models/User.js:57
userModel.methods.generateAccessToken = function() {
^
TypeError: Cannot set properties of undefined (setting 'generateAccessToken')
at Object.<anonymous> (/Users/markus/git/vector-example-blog-platform/models/User.js:57:39)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/Users/markus/git/vector-example-blog-platform/config/dbConnect.js:2:28)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
Node.js v20.17.0
[nodemon] app crashed - waiting for file changes before starting...
Also: what version of Couchbase should I install? Is the community edition sufficient?
Thanks
Markus