ottoman vs couchbase version confusion
See original GitHub issueIn my package.json I’m using:
"dependencies": {
"express": "*",
"couchbase": "*",
"body-parser": "*",
"ottoman":"*"
},
But app complains about mismatched versions or something similar? Is this truly a version mismatch or something else deeper in my app (bikeshop-cb)?
throw new Error('The couchbase module version used by the application'
^
Error: The couchbase module version used by the application does not match Ottomans. Please explicitly pass the application couchbase module using `StoreAdapter.Couchbase`.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Error: The couchbase module version used by the application ...
Hi,. Bear with me, all a bit new to node and ottoman/couchbase. I get the same error when working through example apps. eg....
Read more >Introduction to Ottoman With Couchbase
Ottoman is an Object Data Modeler (ODM) for Couchbase's Node.js SDK providing JSON schema and validation for a NoSQL database.
Read more >Migrating to SDK 3 API | Couchbase Docs
We have identified this as a potential source of confusion and as a result split it up in two methods that simplify usage...
Read more >Migrating to SDK API 3 | Couchbase Docs
We have identified this as a potential source of confusion and as a result split it up in two methods that simplify usage...
Read more >Sub-Document Operations with the C SDK | Couchbase Docs
Sub-document operations can be used to efficiently access parts of documents. Sub-document operations may be quicker and more network-efficient than ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
~Try force installing couchbase@2.2.5;
npm install --save couchbase@2.2.5
. They bumpedpackage.json
to2.3.x
, but the test incbstoreadapter.js
is apparently incorrect under the newer version.~ . uninstall couchbase and ottoman, then install ottoman and it should automatically install a compatible version of couchbase. order matters. if you install couchbase first you’ll get a 2.3.x version of couchbase at the top of node_modules and then installing ottoman will get a 2.2.x version in ottoman/node_modules and things get all confused. if you’re like me you got express working and then you went to add connect-couchbase as the session store which doesn’t install couchbase (curiously an optional dependency). So you installed couchbase separately (2.3.x) and then you started modeling some data with ottoman and got a second copy of couchbase (2.2.x) and now things are a mess.Also, that looks nothing like the dependencies section of the ottoman I have (also 1.0.4)
Hi @brett19
App’s package.json:
Ottoman’s package.json:
and the error:
throw new Error('The couchbase module version used by the application'
Error: The couchbase module version used by the application does not match Ottomans. Please explicitly pass the application couchbase module using
StoreAdapter.Couchbase.
Thanks