Upgrade issue when start



  • I upgraded the nodeBB to v0.5.1.
    Everything's done well.
    But when I start nodeBB by ./nodebb start It showed up this:

        throw err;
              ^
    Error: Cannot find module 'logrotate-stream'
        at Function.Module._resolveFilename (module.js:338:15)
        at Function.Module._load (module.js:280:25)
        at Module.require (module.js:364:17)
        at require (module.js:380:17)
        at Object.<anonymous> (/root/tpc/loader.js:8:14)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
        at Function.Module.runMain (module.js:497:10)
    

    What's wrong?
    Thanks.



  • This is git branch it showed when I run git pull:

       aa116e6..977cd98  master     -> origin/master
     * [new branch]      ACP2       -> origin/ACP2
     + b85261e...598784b v0.5.x     -> origin/v0.5.x  (forced update)
     * [new tag]         v0.5.1     -> v0.5.1
    

    And when I run upgrade it showed up version v0.5.2

    root@server:~/tpc# ./nodebb upgrade
    ./nodebb: line 77: npm: command not found
    ./nodebb: line 80: npm: command not found
    info: NodeBB v0.5.2 Copyright (C) 2013-2014 NodeBB Inc.
    


  • Oh, I've just realized that digital Ocean didn't install "npm" with nodejs when I created the droplet.
    Everything should be fine now.
    Never mind 😆



  • oh I faced another problem

    Error: Cannot find module '../public/src/templates'
        at Function.Module._resolveFilename (module.js:338:15)
        at Function.Module._load (module.js:280:25)
        at Module.require (module.js:364:17)
        at Object.<anonymous> (/root/tpc/node_modules/nodebb-plugin-cash/library.js:7:28)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
        at Module.require (module.js:364:17)
        at require (module.js:380:17)
    

    and when update it faced this

    npm ERR! peerinvalid The package nodebb-theme-vanilla does not satisfy its siblings' peerDependencies requirements!
    npm ERR! peerinvalid Peer nodebb-theme-lavender@0.1.8 wants nodebb-theme-vanilla@~0.1.0
    npm ERR! peerinvalid Peer nodebb-plugin-spam-be-gone@0.2.1 wants nodebb-theme-vanilla@~0.0.33
    
    npm ERR! System Linux 3.13.0-32-generic
    npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
    npm ERR! cwd /root/tpc
    npm ERR! node -v v0.10.25
    npm ERR! npm -v 1.3.10
    npm ERR! code EPEERINVALID
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR!     /root/tpc/npm-debug.log
    npm ERR! not ok code 0
    npm WARN package.json nodebb-plugin-soundpack-default@0.1.1 No README data
    npm WARN package.json nodebb-plugin-dbsearch@0.0.13 No repository field.
    npm WARN package.json nodebb-plugin-imgur@0.0.15 No repository field.
    npm WARN package.json reds@0.2.4 No repository field.
    npm http GET https://registry.npmjs.org/nodebb-theme-vanilla
    npm http GET https://registry.npmjs.org/nodebb-theme-lavender
    npm http GET https://registry.npmjs.org/nodebb-widget-essentials
    npm http 304 https://registry.npmjs.org/nodebb-theme-vanilla
    npm http 304 https://registry.npmjs.org/nodebb-theme-lavender
    npm http 304 https://registry.npmjs.org/nodebb-widget-essentials
    npm http GET https://registry.npmjs.org/async
    npm http GET https://registry.npmjs.org/marked
    npm http 304 https://registry.npmjs.org/async
    npm http 304 https://registry.npmjs.org/marked
    npm ERR! peerinvalid The package nodebb-theme-vanilla does not satisfy its siblings' peerDependencies requirements!
    npm ERR! peerinvalid Peer nodebb-theme-lavender@0.1.8 wants nodebb-theme-vanilla@~0.1.0
    npm ERR! peerinvalid Peer nodebb-plugin-spam-be-gone@0.2.1 wants nodebb-theme-vanilla@~0.0.33
    
    npm ERR! System Linux 3.13.0-32-generic
    npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "i" "nodebb-theme-vanilla" "nodebb-theme-lavender" "nodebb-widget-essentials"
    npm ERR! cwd /root/tpc
    npm ERR! node -v v0.10.25
    npm ERR! npm -v 1.3.10
    npm ERR! code EPEERINVALID
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR!     /root/tpc/npm-debug.log
    npm ERR! not ok code 0
    


  • @Hưng-Thành-Nguyễn

    Start by updating spam-be-gone to the latest with npm install nodebb-plugin-spam-be-gone@latest

    Then try again.



  • @a_5mith it keeps showing this:

    module.js:340
        throw err;
              ^
    Error: Cannot find module 'logrotate-stream'
        at Function.Module._resolveFilename (module.js:338:15)
        at Function.Module._load (module.js:280:25)
        at Module.require (module.js:364:17)
        at require (module.js:380:17)
        at Object.<anonymous> (/root/tpc/loader.js:8:14)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
        at Function.Module.runMain (module.js:497:10)
    

    I will try with another one to see if it sill getproblem.



  • Apparently a new dependency. Had the same problem when I moved from 0.5.0-2 to 0.5.3 today. Fixed with:

    npm install logrotate-stream
    

Log in to reply
 

Suggested Topics

| |