• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

setup error: TypeError: Invalid Version: upgrades

Scheduled Pinned Locked Moved Solved Technical Support
5 Posts 2 Posters 457 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Picasso shiefP Offline
    Picasso shiefP Offline
    Picasso shief
    wrote on last edited by PitaJ
    #1
    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
    
    
    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to Picasso shief on last edited by PitaJ
    #4

    @picasso-shief

    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.

    Picasso shiefP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #2

    It looks like you're upgrading from an older version but you ran ./nodebb setup instead of ./nodebb upgrade.

    Picasso shiefP 1 Reply Last reply
    0
  • Picasso shiefP Offline
    Picasso shiefP Offline
    Picasso shief
    replied to PitaJ on last edited by
    #3

    @pitaj but It is new installer , not upgrade

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to Picasso shief on last edited by PitaJ
    #4

    @picasso-shief

    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.

    Picasso shiefP 1 Reply Last reply
    0
  • Picasso shiefP Picasso shief has marked this topic as solved on
  • Picasso shiefP Offline
    Picasso shiefP Offline
    Picasso shief
    replied to PitaJ on last edited by
    #5

    @pitaj thanks,it works~

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development