setup error: TypeError: Invalid Version: upgrades
Solved
Technical Support
-
coolningdeMacBook-Pro:NodeBB coolning$ ./nodebb setup Dependencies outdated or not yet installed. Installing them now... npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: support for ECMAScript is superseded by `uglify-js` as of v3.13.0 npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 added 620 packages, and audited 621 packages in 26m 39 packages are looking for funding run `npm fund` for details 1 moderate severity vulnerability Some issues need review, and may require choosing a different dependency. Run `npm audit` for details. OK 2021-10-23T10:19:54.403Z [92185] - info: NodeBB Setup Triggered via Command Line Welcome to NodeBB v1.18.4! This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed. Press enter to accept the default setting (shown in brackets). 2021-10-23T10:19:54.533Z [92185] - info: Now configuring mongo database: 2021-10-23T10:19:54.757Z [92185] - info: [database] Checking database indices. 2021-10-23T10:19:54.763Z [92185] - info: [database] Checking database indices done! 2021-10-23T10:19:55.966Z [92185] - verbose: [minifier] utilizing a maximum of 7 additional threads Configuration Saved OK Populating database with default configs, if not already set... Previous theme detected, skipping enabling default theme Categories OK. Found 12 categories. Administrator found, skipping Admin setup 2021-10-23T10:19:55.997Z [92185] - info: Global Moderators group found, skipping creation! Enabling default plugins 2021-10-23T10:19:56.017Z [92185] - info: [install/defaultPlugins] customDefaults 2021-10-23T10:19:56.018Z [92185] - info: [install/enableDefaultPlugins] activating default plugins {"0":"nodebb-plugin-composer-default","1":"nodebb-plugin-markdown","2":"nodebb-plugin-mentions","3":"nodebb-widget-essentials","4":"nodebb-rewards-essentials","5":"nodebb-plugin-emoji","6":"nodebb-plugin-emoji-android"} 2021-10-23T10:19:56.029Z [92185] - warn: NodeBB Setup Aborted. TypeError: Invalid Version: upgrades at new SemVer (/Users/coolning/Documents/myWeb/NodeBB/node_modules/semver/classes/semver.js:38:13) at Object.compare (/Users/coolning/Documents/myWeb/NodeBB/node_modules/semver/functions/compare.js:3:32) at /Users/coolning/Documents/myWeb/NodeBB/src/upgrade.js:32:32 at Array.sort (<anonymous>) at Upgrade.getAll (/Users/coolning/Documents/myWeb/NodeBB/src/upgrade.js:29:67) at async Upgrade.check (/Users/coolning/Documents/myWeb/NodeBB/src/upgrade.js:84:16) at async checkUpgrade (/Users/coolning/Documents/myWeb/NodeBB/src/install.js:483:3) at async Object.install.setup (/Users/coolning/Documents/myWeb/NodeBB/src/install.js:509:3) at async async.series.data (/Users/coolning/Documents/myWeb/NodeBB/src/cli/setup.js:27:11) You have new mail in /var/mail/coolning
-
Previous theme detected, skipping enabling default theme
This looks to me like you had an existing database.
Try reinstalling with your previous version and then upgrading from there.
-
It looks like you're upgrading from an older version but you ran
./nodebb setup
instead of./nodebb upgrade
. -
Previous theme detected, skipping enabling default theme
This looks to me like you had an existing database.
Try reinstalling with your previous version and then upgrading from there.
-
Copyright © 2024 NodeBB | Contributors