@pichalite said in v1.x.x installs mongodb 2.1.22 and requires 2.1.3:
@exodo try the install without the ~
npm i mongodb@2.1.21
that's the latest in that minor version.
seems to work now after a few error commands š
npm i mongodb@2.1.3
-
> kerberos@0.0.21 install /var/foroexodo/nodebb/node_modules/mongodb/node_module s/kerberos
> (node-gyp rebuild) || (exit 0)
make: Entering directory `/var/foroexodo/nodebb/node_modules/mongodb/node_module s/kerberos/build'
CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory
compilation terminated.
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory `/var/foroexodo/nodebb/node_modules/mongodb/node_modules /kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_module s/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820: 12)
gyp ERR! System Linux 3.5.0-54-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/nod e-gyp.js" "rebuild"
gyp ERR! cwd /var/foroexodo/nodebb/node_modules/mongodb/node_modules/kerberos
gyp ERR! node -v v0.10.37
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
mongodb@2.1.3 node_modules/mongodb
āāā es6-promise@3.0.2
āāā readable-stream@1.0.31 (inherits@2.0.1, isarray@0.0.1, string_decoder@0.10.3 1, core-util-is@1.0.2)
āāā kerberos@0.0.21 (nan@2.3.5)
āāā mongodb-core@1.2.31 (bson@0.4.23)
root@w1-exodo:/var/foroexodo/nodebb# npm ls mongodb
nodebb@1.1.2 /var/foroexodo/nodebb
āāā mongodb@2.1.3 invalid
npm ERR! invalid: mongodb@2.1.3 /var/foroexodo/nodebb/node_modules/mongodb
npm ERR! not ok code 0
root@w1-exodo:/var/foroexodo/nodebb# npm install
root@w1-exodo:/var/foroexodo/nodebb# ./nodebb upgrade
1. Bringing base dependencies up to date... OK
2. Checking installed plugins for updates... OK
3. Updating NodeBB data store schema...
15/8 11:14 [5763] - info: [database] Checking database indices.
15/8 11:14 [5763] - info: Beginning database schema update
15/8 11:14 [5763] - info: [2015/12/15] Chats upgrade skipped!
15/8 11:14 [5763] - info: [2015/12/23] Chats room hashes upgrade skipped!
15/8 11:14 [5763] - info: [2015/12/23] Adding theme to active plugins sorted set skipped!
15/8 11:14 [5763] - info: [2016/01/14] Creating user best post sorted sets skipped!
15/8 11:14 [5763] - info: [2016/01/20] Creating users:notvalidated skipped!
15/8 11:14 [5763] - info: [2016/01/23] Creating Global moderators group skipped!
15/8 11:14 [5763] - info: [2016/02/25] Social: Post Sharing skipped!
15/8 11:14 [5763] - info: [2016/04/14] Group title from settings to user profile skipped!
15/8 11:14 [5763] - info: [2016/04/19] Users post count per tid skipped!
15/8 11:14 [5763] - info: [2016/04/29] Dismiss flags from deleted topics skipped!
15/8 11:14 [5763] - info: [2016/05/28] Giving topics:read privs to any group that was previously allowed to Find & Access Category - skipped!
15/8 11:14 [5763] - info: [2016/06/13] Store upvotes/downvotes separately skipped!
15/8 11:14 [5763] - info: [2016/07/12] Upload privileges skipped!
15/8 11:14 [5763] - info: [2016/08/05] Removing best posts with negative scores skipped!
15/8 11:14 [5763] - info: [upgrade] Schema already up to date!
OK
NodeBB Upgrade Complete!
root@w1-exodo:/var/foroexodo/nodebb# npm ls redis
nodebb@1.1.2 /var/foroexodo/nodebb
āā⬠nodebb-plugin-dbsearch@1.0.2
ā āā⬠redisearch@0.0.6
ā āāā redis@0.12.1
āāā redis@2.4.2
āā⬠socket.io-redis@1.0.0
āāā redis@2.3.0
root@w1-exodo:/var/foroexodo/nodebb# npm ls mongodb
nodebb@1.1.2 /var/foroexodo/nodebb
āāā mongodb@2.1.3