issues installing Nodebb on Debian 8



  • The guide for installation on Debian seems to be focused towards Debian 6 and 7.

    I've only installed curl and redis.

    I'm on root if that makes any difference


  • GNU/Linux

    I'm running Debian 8, Mongo 3.2.1, Redis-server 3.0.6, Nodejs v0.12.9, npm 2.14.9 Everything seems to be running perfectly.

    If your having issues you prob want to post logs so people can help understand the main fault.



  • I go into the nodebb folder and type ./nodebb setup and get this error

    module.js:338
    throw err;
    ^
    Error: Cannot find module './system/supports-colors'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/root/nodebb/node_modules/colors/lib/colors.js:39:24)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

    These are the only commands I ran

    git clone -b v0.9.x https://github.com/NodeBB/NodeBB.git nodebb

    apt-get install redis-server imagemagick git build-essential

    sudo apt-get install curl

    curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
    sudo apt-get install -y nodejs


  • Community Rep

    You skipped the step

    npm install
    


  • @yariplus

    Oh thanks. I get this error tho

    npm ERR! install Couldn't read dependencies
    npm ERR! Linux 3.16.0-4-amd64
    npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
    npm ERR! node v0.12.9
    npm ERR! npm v2.14.9
    npm ERR! path /root/package.json
    npm ERR! code ENOPACKAGEJSON
    npm ERR! errno -2

    npm ERR! package.json ENOENT, open '/root/package.json'
    npm ERR! package.json This is most likely not a problem with npm itself.
    npm ERR! package.json npm can't find a package.json file in your current directory.

    npm ERR! Please include the following file with any support request:
    npm ERR! /root/npm-debug.log


  • Community Rep

    Do it inside the nodebb directory.



  • @yariplus

    That's where I did it.


  • Plugin & Theme Dev

    @jkyjky I believe you need to run npm install with argument when setting up NodeBB (not sure what difference it makes... didn't check code)

    npm install --production


  • Community Rep

    @jkyjky Are you sure?

    npm ERR! package.json npm can't find a package.json file in your current directory.



  • Yeah I did it in /nodebb folder.

    In my root dir there's the Nodebb and NPM folders.


  • Plugin & Theme Dev

    @jkyjky said:

    Based on the error log you posted... you ran npm install in the /root folder instead of in /root/nodebb

    npm ERR! path /root/package.json
    npm ERR! code ENOPACKAGEJSON
    npm ERR! errno -2

    npm ERR! package.json ENOENT, open '/root/package.json'



  • I did cd nodebb. Here's the npm debug file http://pastebin.com/kPEy6jnM



  • Got it installed! Had installed curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash - sudo apt-get install -y nodejs within the nodebb dir then ran npm install.

    Nodebb doesn't show up at my server ip? I read that Debian comes with NgInx already.. I didn't install the dotDAB.


  • GNU/Linux

    This might be just me, but I wouldn't be loading that under root directory. Create a new user and use that for nodebb location under home location. As to nodebb not showing up. What does your nodebb config, and nginx config look like? I don't know what you mean by debian comes with nginx already. Sure might be in the repo but shouldn't come installed, Unless a script you ran installed it for you.


Log in to reply
 


Star

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.