can not start nodebb after upgrade

Technical Support
  • Base Configuration OK.
    throw err;

    Error: Cannot find module ''
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/pawan/Discussion forum/nodebb/src/
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    info: NodeBB v0.4.3 Copyright (C) 2013-2014 DesignCreatePlay Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.

  • Make sure you have a package.json in your nodebb folder and run npm i

  • @baris i do have package.json file in my command prompt.

    after running npm -i on command prompt i get following error

    Usage: npm <command>

    where <command> is one of:
    access, adduser, bin, bugs, c, cache, completion, config,
    ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get,
    help, help-search, i, init, install, install-test, it, link,
    list, ln, login, logout, ls, outdated, owner, pack, ping,
    prefix, prune, publish, rb, rebuild, repo, restart, root,
    run, run-script, s, se, search, set, shrinkwrap, star,
    stars, start, stop, t, tag, team, test, tst, un, uninstall,
    unpublish, unstar, up, update, v, version, view, whoami

    npm <cmd> -h quick help on <cmd>
    npm -l display full usage info
    npm help <term> search for help on <term>
    npm help npm involved overview

    Specify configs in the ini-formatted file:
    or on the command line via: npm <command> --key value
    Config info can be viewed via: npm help config

    [email protected] /usr/lib/node_modules/npm

  • @pawan-patil You need to run npm i not npm -i

  • @baris I have package.json in my nodebb folder still it is giving error

  • yes i have package.json in my nodebb folder still it is giving error

  • @pawan-patil run ./nodebb upgrade -mi

  • @teh_g after running npm i following error comes on console

    npm WARN deprecated [email protected]: connect 2.x series is deprecated
    npm WARN deprecated [email protected]: Use uuid module instead
    npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie
    npm ERR! Linux 3.10.0-693.11.1.el7.x86_64
    npm ERR! argv "/usr/bin/node" "/bin/npm" "i"
    npm ERR! node v6.12.0
    npm ERR! npm v3.10.10
    npm ERR! code ETARGET

    npm ERR! notarget No compatible version found: [email protected]
    npm ERR! notarget Valid install targets:
    npm ERR! notarget 0.3.6, 0.3.5, 0.3.4, 0.3.3, 0.3.1, 0.3.0, 0.2.0
    npm ERR! notarget
    npm ERR! notarget This is most likely not a problem with npm itself.
    npm ERR! notarget In most cases you or one of your dependencies are requesting
    npm ERR! notarget a package version that doesn't exist.

    npm ERR! Please include the following file with any support request:
    npm ERR! /home/pawan/Discussion forum/nodebb/npm-debug.log


Suggested Topics