v1.x.x installs mongodb 2.1.22 and requires 2.1.3
-
git clone -b v1.x.x https://github.com/NodeBB/NodeBB.git nodebb Cloning into 'nodebb'... remote: Counting objects: 104177, done. remote: Compressing objects: 100% (75/75), done. remote: Total 104177 (delta 22), reused 0 (delta 0), pack-reused 104102 Receiving objects: 100% (104177/104177), 31.96 MiB | 11.28 MiB/s, done. Resolving deltas: 100% (77551/77551), done. root@w1-exodo:/var/exodo# cd nodebb/ root@w1-exodo:/var/exodo/nodebb# npm install --production npm WARN engine [email protected]: wanted: {"node":">=0.12"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN engine [email protected]: wanted: {"node":">=0.12"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years. npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN engine [email protected]: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.37","npm":"1.4.28"}) [email protected] node_modules/connect-flash [email protected] node_modules/connect-ensure-login [email protected] node_modules/nodemailer-sendmail-transport [email protected] node_modules/socketio-wildcard [email protected] node_modules/nodebb-plugin-soundpack-default [email protected] node_modules/daemon [email protected] node_modules/nodebb-rewards-essentials [email protected] node_modules/ip [email protected] node_modules/toobusy-js [email protected] node_modules/mime [email protected] node_modules/semver [email protected] node_modules/colors [email protected] node_modules/minimist [email protected] node_modules/serve-favicon ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules/cookie-parser ├── [email protected] └── [email protected] [email protected] node_modules/passport-local └── [email protected] [email protected] node_modules/underscore [email protected] node_modules/underscore.deep [email protected] node_modules/sitemap └── [email protected] [email protected] node_modules/passport ├── [email protected] └── [email protected] [email protected] node_modules/express-useragent [email protected] node_modules/nodebb-plugin-spam-be-gone ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules/nodebb-widget-essentials [email protected] node_modules/async [email protected] node_modules/lru-cache ├── [email protected] └── [email protected] [email protected] node_modules/mkdirp └── [email protected] [email protected] node_modules/nodebb-plugin-mentions [email protected] node_modules/string [email protected] node_modules/xregexp [email protected] node_modules/bcryptjs [email protected] node_modules/csurf ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/nodebb-plugin-composer-default └── [email protected] [email protected] node_modules/nodebb-theme-lavender [email protected] node_modules/express-session ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected]) [email protected] node_modules/logrotate-stream ├── [email protected] ├── [email protected] └── [email protected] ([email protected], [email protected]) [email protected] node_modules/validator [email protected] node_modules/rimraf └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/nodemailer-smtp-transport ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected]) [email protected] node_modules/connect-multiparty ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/winston ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules/connect-redis └── [email protected] ([email protected]) [email protected] node_modules/mousetrap [email protected] node_modules/morgan ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected]) [email protected] node_modules/redis ├── [email protected] └── [email protected] [email protected] node_modules/html-to-text ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/prompt ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/nconf ├── [email protected] ├── [email protected] └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/socket.io-redis ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected]) [email protected] node_modules/connect-mongo └── [email protected] [email protected] node_modules/nodemailer ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected]) [email protected] node_modules/json-2-csv ├── [email protected] └── [email protected] [email protected] node_modules/request ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/compression ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/socket.io ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected]) [email protected] node_modules/templates.js [email protected] node_modules/nodebb-theme-vanilla [email protected] node_modules/rss ├── [email protected] └── [email protected] ([email protected]) [email protected] node_modules/nodebb-theme-persona [email protected] node_modules/socket.io-client ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/uglify-js ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] ([email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/body-parser ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/express ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ([email protected], [email protected]) ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/nodebb-plugin-markdown └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules/postcss ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] [email protected] node_modules/mongodb ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected]) [email protected] node_modules/jimp ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] [email protected] node_modules/nodebb-plugin-emoji-one ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules/nodebb-plugin-dbsearch └── [email protected] ([email protected], [email protected]) [email protected] node_modules/cron └── [email protected] ([email protected]) [email protected] node_modules/less ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] └── [email protected] ([email protected]) [email protected] node_modules/autoprefixer ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [email protected] node_modules/chart.js ├── [email protected] ([email protected], [email protected]) └── [email protected] [email protected] node_modules/nodebb-plugin-emoji-extended ├── [email protected] └── [email protected] root@w1-exodo:/var/exodo/nodebb# nano config.json root@w1-exodo:/var/exodo/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 04:52 [4507] - info: [database] Checking database indices. 15/8 04:52 [4507] - info: Beginning database schema update 15/8 04:52 [4507] - info: [2015/12/15] Chats upgrade skipped! 15/8 04:52 [4507] - info: [2015/12/23] Chats room hashes upgrade skipped! 15/8 04:52 [4507] - info: [2015/12/23] Adding theme to active plugins sorted set skipped! 15/8 04:52 [4507] - info: [2016/01/14] Creating user best post sorted sets skipped! 15/8 04:52 [4507] - info: [2016/01/20] Creating users:notvalidated skipped! 15/8 04:52 [4507] - info: [2016/01/23] Creating Global moderators group skipped! 15/8 04:52 [4507] - info: [2016/02/25] Social: Post Sharing skipped! 15/8 04:52 [4507] - info: [2016/04/14] Group title from settings to user profile skipped! 15/8 04:52 [4507] - info: [2016/04/19] Users post count per tid skipped! 15/8 04:52 [4507] - info: [2016/04/29] Dismiss flags from deleted topics skipped! 15/8 04:52 [4507] - info: [2016/05/28] Giving topics:read privs to any group that was previously allowed to Find & Access Category - skipped! 15/8 04:52 [4507] - info: [2016/06/13] Store upvotes/downvotes separately skipped! 15/8 04:52 [4507] - info: [2016/07/12] Upload privileges skipped! 15/8 04:52 [4507] - info: [2016/08/05] Removing best posts with negative scores skipped! 15/8 04:52 [4507] - info: [upgrade] Schema already up to date! OK NodeBB Upgrade Complete! root@w1-exodo:/var/exodo/nodebb# ./nodebb start Starting NodeBB "./nodebb stop" to stop the NodeBB server "./nodebb log" to view server output "./nodebb restart" to restart NodeBB root@w1-exodo:/var/exodo/nodebb# ./nodebb log Type Ctrl-C to exit [outdated] mongodb installed v2.1.22-alpha4, package.json requires ~2.1.3 15/8 04:52 [4532] - warn: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them: 15/8 04:52 [4532] - warn: ./nodebb upgrade 15/8 04:52 [4534] - warn: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them: 15/8 04:52 [4534] - warn: ./nodebb upgrade [cluster] Child Process (4532) has exited (code: 0, signal: null) 15/8 04:52 [4527] - warn: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them: [cluster] Child Process (4534) has exited (code: 0, signal: null) 15/8 04:52 [4527] - warn: ./nodebb upgrade [cluster] Child Process (4527) has exited (code: 0, signal: null)
[outdated] mongodb installed v2.1.22-alpha4, package.json requires ~2.1.3 15/8 04:52 [4532] - warn: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them: 15/8 04:52 [4532] - warn: ./nodebb upgrade 15/8 04:52 [4534] - warn: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them: 15/8 04:52 [4534] - warn: ./nodebb upgrade [cluster] Child Process (4532) has exited (code: 0, signal: null) 15/8 04:52 [4527] - warn: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them: [cluster] Child Process (4534) has exited (code: 0, signal: null) 15/8 04:52 [4527] - warn: ./nodebb upgrade [cluster] Child Process (4527) has exited (code: 0, signal: null)
Tried to npm i mongodb@~2.1.3
but didnt work -
@pichalite said in v1.x.x installs mongodb 2.1.22 and requires 2.1.3:
@exodo what happened when you tried to install mongodb module using
npm i
? Did you get an error?No error but mongo stays on same version
-
@exodo try the install without the
~
npm i [email protected]
that's the latest in that minor version.
-
@pichalite said in v1.x.x installs mongodb 2.1.22 and requires 2.1.3:
@exodo try the install without the
~
npm i [email protected]
that's the latest in that minor version.
seems to work now after a few error commands
npm i [email protected] - > [email protected] 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 [email protected] node_modules/mongodb ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected] 1, [email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected]) root@w1-exodo:/var/foroexodo/nodebb# npm ls mongodb [email protected] /var/foroexodo/nodebb └── [email protected] invalid npm ERR! invalid: [email protected] /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 [email protected] /var/foroexodo/nodebb ├─┬ [email protected] │ └─┬ [email protected] │ └── [email protected] ├── [email protected] └─┬ [email protected] └── [email protected] root@w1-exodo:/var/foroexodo/nodebb# npm ls mongodb [email protected] /var/foroexodo/nodebb └── [email protected]
Copyright © 2024 NodeBB | Contributors