Need help installing NodeBB on CentOS
-
@HolyPhoenix and @a_5mith Thank you for your patience and for trying to help.
I tried installing NodeBB from the beginning again and when I got to sudo npm install -g npm I noticed that I was getting npm WARN unmet dependency in PuTTY as a result. I think I will send my host another support ticket and ask them to install NodeBB for me.
-
I think the
npm WARN
message you might be able to safely ignore. Did you try going any further? Good luck with the support ticket! -
@psychobunny said:
I think the
npm WARN
message you might be able to safely ignore. Did you try going any further? Good luck with the support ticket!I ended up signing on with a new host, WiredTree, yesterday and will be leaving HostGator once I get a few domains that I have registered with them transferred to Namecheap. I had an idea that my server with HostGator was messed up but didn't know exactly how much until I installed Magento on a new site with WiredTree. The install went flawlessly on WT and was a nightmare when trying to do the same on HG... all of WT's software is up to date as far as I can tell while some of HG's is close to being end of life. I will try installing NodeBB one more time on my own once things settle down and if I still can't do it, I will send WT a support ticket.
-
@HolyPhoenix
root@server [~]# yum install -g npm
Loaded plugins: fastestmirror, securityroot@server [~]# yum install npm
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
No package npm available.
Error: Nothing to doany suggestion for these erors ?
-
@a_5mith
root@server [/home/chanrad]# cd nodebb
root@server [/home/chanrad/nodebb]# sudo npm install -g npm
sudo: npm: command not found
root@server [/home/chanrad/nodebb]# sudo yump install -g npm
sudo: yump: command not found
root@server [/home/chanrad/nodebb]# sudo yum install -g npm
^[[ALoaded plugins: fastestmirror, securityroot@server [/home/chanrad/nodebb]# yum install npm
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile- base:
- extras:
- updates:
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
pgdg93 | 3.6 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
No package npm available.
Error: Nothing to do
root@server [/home/chanrad/nodebb]# yum npm install
Loaded plugins: fastestmirror, security
No such command: npm. Please use /usr/bin/yum --help
i'm sure i'm in nodebb folder thats the log..
-
@nakre you are in nodebb, didn't look like it from first logs, lack of npm might suggest you've not got everything from the software stack part. Can you try
cd ../ sudo yum install npm cd nodebb sudo npm install -g npm sudo npm install
-
@a_5mith
root@server [/home/chanrad/nodebb]# cd ../
root@server [/home/chanrad]# sudo yum install npm
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile- base:
- extras:
- updates:
Setting up Install Process
No package npm available.
Error: Nothing to do
root@server [/home/chanrad]# cd nodebb
root@server [/home/chanrad/nodebb]# sudo npm install -g npm
sudo: npm: command not found
root@server [/home/chanrad/nodebb]# sudo npm install
sudo: npm: command not found
when i used sudo yum install nodejs git redis ImageMagick npm
Setting up Install Process
No package nodejs available.
Package git-1.7.1-3.el6_4.1.i686 already installed and latest version
No package redis available.
Package ImageMagick-6.5.4.7-7.el6_5.i686 already installed and latest version
No package npm available.
Nothing to do -
If I remember correctly npm is in the EPEL repository, and based on your error it looks like you don't have the repo enabled. This guide looks pretty good.
http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6xMake sure you use the right EPEL release for your version of centos.
Once you finish that then run the npm command again and it should work. You shouldn't need to install it to the nodebb directory.
-
Did adding the EPEL repository work for you?
-
@HolyPhoenix maybe i should give up.. if i can't manage to install it how could i maintenance it ;x still thanks a lot for helping me out, these comments may help some others as well..
Here are latest logs i have.. i'm kinda very sure i have epel enabled.
root@server [/]# cd home
root@server [/home]# cd chanrad
root@server [/home/chanrad]# cd nodebb
root@server [/home/chanrad/nodebb]# sudo npm install -g npm
sudo: npm: command not found
root@server [/home/chanrad/nodebb]# cd ..
root@server [/home/chanrad]# sudo yum install npm
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile- base: centos.chi.host-engine.com
- extras: mirror.fdcservers.net
- remi: rpms.famillecollet.com
- updates: mirror.wiredtree.com
remi | 2.9 kB 00:00
remi/primary_db | 707 kB 00:00
Setting up Install Process
No package npm available.
Error: Nothing to do
root@server [/home/chanrad]# cd nodebb
root@server [/home/chanrad/nodebb]# sudo npm install -g npm
sudo: npm: command not found
Command line error: no such option: -g
root@server [/home/chanrad]# cd ../
root@server [/home]# sudo yum install npm
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile- base: centos.chi.host-engine.com
- extras: mirror.fdcservers.net
- remi: mirrors.mediatemple.net
- updates: mirror.wiredtree.com
Setting up Install Process
No package npm available.
Error: Nothing to do
root@server [/home]# cd home/chanrad
-bash: cd: home/chanrad: No such file or directory
root@server [/home]# cd chanrad/nodebb
root@server [/home/chanrad/nodebb]# sudo npm install -g npm
sudo: npm: command not found
root@server [/home/chanrad/nodebb]# sudo npm install
sudo: npm: command not found
root@server [/home/chanrad/nodebb]#
root@server [/home/chanrad]# sudo vim /etc/yum.repos.d/remi.repo
[remi]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi -
-
@HolyPhoenix Sure here it is..
root@server [~]# cd /etc/yum.repos.d
root@server [/etc/yum.repos.d]# ls
./ epel.repo pgdg-93-centos.repo
../ epel.repo.rpmnew remi.repo
CentOS-Base.repo epel-testing.repo .remi.repo.swp
CentOS-Debuginfo.repo mirrors-rpmforge rpmforge.repo
CentOS-Media.repo mirrors-rpmforge-extras webtatic.repo
CentOS-Vault.repo mirrors-rpmforge-testing
root@server [/etc/yum.repos.d]# -
and what happens if you run?
- cat /etc/release -
root@server [/etc]# cat /etc/release
CentOS release 6.5 (Final)
LSB_VERSION=base-4.0-ia32:base-4.0-noarch:core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
cat: /etc/lsb-release.d: Is a directory
CentOS release 6.5 (Final)
CentOS release 6.5 (Final)
cpe:/o:centos:linux:6:GA
root@server [/etc]# -
Hmmm... It looks like the repo files are there, but it appears it isn't loading the repo.
I guess the last thing to check is yum itself. I think you can list the repos yum has loaded with a
- sudo yum repolist
Edit: I found these instructions online. They mention enabling the EPEL repository within the command itself. That might prove useful.
Node.js and npm are available from the Fedora Extra Packages for Enterprise Linux (EPEL) repository. If you haven't already done so, first enable EPEL.
To check if you have EPEL, run
yum repolist
if you don't see epel, install it via RPM (At the time of this writing, the last version is 6.8.).First import the key:
sudo rpm --import https://fedoraproject.org/static/0608B895.txt
Then installsudo rpm -Uvh http://download-i2.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
And then run the following command to install node and npm:sudo yum install nodejs npm --enablerepo=epel
or if this doesn't work for you install node separately:sudo yum install npm --enablerepo=epel
-
@HolyPhoenix here is the last log, i also tried ./nodebb setup to see the errors may help dunno..
root@server [~]# sudo yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile- base: mirror.team-cymru.org
- extras: mirror.cisp.com
- remi: remi.check-update.co.uk
- updates: mirror.team-cymru.org
repo id repo name status
base CentOS-6 - Base 4,729+73
extras CentOS-6 - Extras 12
pgdg93 PostgreSQL 9.3 6 - i386 195+1
remi Les RPM de remi pour Enterprise Linux 6 - i386 196+1,333
updates CentOS-6 - Updates 741+56
repolist: 5,873
root@server [~]# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile - base: mirror.team-cymru.org
- extras: mirror.cisp.com
- remi: remi.check-update.co.uk
- updates: mirror.team-cymru.org
repo id repo name status
base CentOS-6 - Base 4,729+73
extras CentOS-6 - Extras 12
pgdg93 PostgreSQL 9.3 6 - i386 195+1
remi Les RPM de remi pour Enterprise Linux 6 - i386 196+1,333
updates CentOS-6 - Updates 741+56
repolist: 5,873
root@server [~]# sudo rpm --import https://fedoraproject.org/static/0608B895.txt
root@server [~]# sudo rpm -Uvh http://download-i2.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmRetrieving http://download-i2.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Preparing... ########################################### [100%]
package epel-release-6-8.noarch is already installed
root@server [~]# sudo yum install nodejs npm --enablerepo=epel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile - base: mirror.team-cymru.org
- epel: mirror.nexcess.net
- extras: centos.corenetworks.net
- remi: remi.check-update.co.uk
- updates: mirror.team-cymru.org
epel | 3.7 kB 00:00
epel/primary_db | 3.2 MB 00:00
Setting up Install Process
No package nodejs available.
No package npm available.
Error: Nothing to do
root@server [~]# sudo yum install npm --enablerepo=epel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile - base: mirror.team-cymru.org
- epel: mirror.nexcess.net
- extras: mirror.cisp.com
- remi: remi.check-update.co.uk
- updates: mirror.team-cymru.org
Setting up Install Process
No package npm available.
Error: Nothing to do
root@server [~]# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile - base: mirror.team-cymru.org
- extras: mirror.cisp.com
- remi: remi.check-update.co.uk
- updates: mirror.team-cymru.org
repo id repo name status
base CentOS-6 - Base 4,729+73
extras CentOS-6 - Extras 12
pgdg93 PostgreSQL 9.3 6 - i386 195+1
remi Les RPM de remi pour Enterprise Linux 6 - i386 196+1,333
updates CentOS-6 - Updates 741+56
repolist: 5,873
root@server [~]# cd home
-bash: cd: home: No such file or directory
root@server [~]# cd ..
root@server [/]# ls
./ bin/ dev/ home/ media/ net/ quota.user root/ selinux/ tmp/
../ boot/ error_log lib/ misc/ opt/ razor-agent.log sbin/ srv/ usr/
.autofsck cgroup/ etc/ lost+found/ mnt/ proc/ .readahead_collect scripts@ sys/ var/
root@server [/]# cd home/chanrad
root@server [/home/chanrad]# cd nodebb
root@server [/home/chanrad/nodebb]# cd ../
root@server [/home/chanrad]# sudo yum install npm
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile - base: mirror.team-cymru.org
- extras: mirror.cisp.com
- remi: remi.check-update.co.uk
- updates: mirror.team-cymru.org
Setting up Install Process
No package npm available.
Error: Nothing to do
root@server [/home/chanrad]# cd nodebb
root@server [/home/chanrad/nodebb]# sudo npm install -g npm
sudo: npm: command not found
root@server [/home/chanrad]# cd nodebb
root@server [/home/chanrad/nodebb]# ./nodebb setup
module.js:333
throw err;
^
Error: Cannot find module 'nconf'
at Function.Module._resolveFilename (module.js:331:15)
at Function.Module._load (module.js:273:25)
at Module.require (module.js:357:17)
at require (module.js:373:17)
at Object.<anonymous> (/home/chanrad/nodebb/app.js:23:13)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:349:32)
at Function.Module._load (module.js:305:12)
at Function.Module.runMain (module.js:490:10)