Upgrading to Nodebb v1.5.1

Technical Support
  • FWIW @julian @baris @psychobunny upgrading to [email protected] and using the package-lockfile.json thats generated could make these kinds of issues go away.

  • @bri [email protected] has some development usability issues. Namely, npm link is broken as an npm i in the main directory will dedupe out of linked modules, breaking lots of things.

  • output of npm i

    > node scripts/install.js
    
    npm WARN prefer global [email protected] should be installed with -g
    
    > [email protected] postinstall /home/ljhardy/public_html/nodebb/nodebb/node_modules/jsonpath
    > node lib/aesprim.js > generated/aesprim-browser.js
    
    
    > [email protected] install /home/ljhardy/public_html/nodebb/nodebb/node_modules/sqlite3
    > node-pre-gyp install --fallback-to-build
    
    [sqlite3] Success: "/home/ljhardy/public_html/nodebb/nodebb/node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node" already installed
    Pass --update-binary to reinstall or --build-from-source to recompile
    npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/nock/node_modules/changelog requires [email protected]'^0.5.1' but will load
    npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/chalk,
    npm WARN unmet dependency which is version 1.1.3
    npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/nock/node_modules/changelog requires [email protected]'^4.0.3' but will load
    npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/semver,
    npm WARN unmet dependency which is version 5.3.0
    npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/nock/node_modules/changelog requires [email protected]'^0.0.2' but will load
    npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/wordwrap,
    npm WARN unmet dependency which is version 0.0.3
    

    output of nodebb upgrade

    1. Bringing base dependencies up to date... OK
    2. Checking installed plugins for updates... OK
    3. Updating NodeBB data store schema...
    /home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:37
    		invalidUnicodeChars: XRegExp('[^\\p{L}\\s\\d\\-_]', 'g'),
    		                     ^
    
    TypeError: XRegExp is not a function
        at /home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:37:24
        at /home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:8:20
        at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:27:2)
        at Module._compile (module.js:409:26)
        at Object.Module._extensions..js (module.js:416:10)
        at Module.load (module.js:343:32)
        at Function.Module._load (module.js:300:12)
        at Module.require (module.js:353:17)
        at require (internal/module.js:12:17)
        at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/src/utils.js:3:18)
    
    Error: undefined
    
  • Have you nuked your node_modules/ folder and tried npm i --production? It seems npm is getting quite confused with your folder...

  • What the heck? Sqlite3?

  • @Bri - I'm using mongodb, why would sqllite be referenced?

  • I have a current mongodb backup. Would it be possible for me to remove everything, install the latest version of Nodebb and then restore all of the data? How would I do that?

    Thanks, I really appreciate the help here.

  • Ok, I actually had a full directory backup of nodebb from a couple of months ago. I restored that and am able to start nodebb. Now I'll start the upgrade again.

  • Success!!! Thanks guys.

  • @ljhardy said in Upgrading to Nodebb v1.5.1:

    I'm using mongodb, why would sqllite be referenced?

    Um, you tell me 😄 That was the output in your installer script!

    output of npm i

    node scripts/install.js

    npm WARN prefer global [email protected] should be installed with -g

    [email protected] postinstall /home/ljhardy/public_html/nodebb/nodebb/node_modules/jsonpath
    node lib/aesprim.js > generated/aesprim-browser.js

    [email protected] install /home/ljhardy/public_html/nodebb/nodebb/node_modules/sqlite3
    node-pre-gyp install --fallback-to-build

    [sqlite3] Success: "/home/ljhardy/public_html/nodebb/nodebb/node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node" already installed
    Pass --update-binary to reinstall or --build-from-source to recompile


Suggested Topics


| | | |