issues installing Nodebb on Debian 8
-
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 -
You skipped the step
npm install
-
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 -2npm 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 -
Do it inside the
nodebb
directory. -
@jkyjky said:
Based on the error log you posted... you ran
npm install
in the /root folder instead of in /root/nodebbnpm ERR! path /root/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2npm 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.
-
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.