evenup / evenup-hubot

Puppet module for managing hubot
Other
8 stars 36 forks source link

nodejs is no longer available #7

Closed spuder closed 9 years ago

spuder commented 10 years ago

Nodejs is no longer part of the CentOS repos.

Attempting to run the module gives the following error

Debug: Package[nodejs](provider=yum): Ensuring => present
Debug: Executing '/usr/bin/yum -d 0 -e 0 -y install nodejs'
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install nodejs' returned 1: Error: Nothing to do

Error: /Stage[main]/Nodejs/Package[nodejs]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install nodejs' returned 1: Error: Nothing to do

Debug: Executing '/bin/rpm -q npm --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}
'
Debug: Package[npm](provider=yum): Ensuring => present
Debug: Executing '/usr/bin/yum -d 0 -e 0 -y install npm'
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install npm' returned 1: Error: Nothing to do

Error: /Stage[main]/Nodejs/Package[npm]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y i

http://serverfault.com/questions/299288/how-do-you-install-node-js-on-centos

jlambert121 commented 10 years ago

I'm not sure the question or problem. You will need to make the nodejs package available to your machine. I do it by running my own repo for packages I have built myself. The link you provided describes how to build your own nodejs package with frpm, another option is to use a spec file and RedHat's tools - here's one on GH: https://github.com/kazuhisya/nodejs-rpm

fsalum commented 10 years ago

nodejs is available on epel repo for centos

skpy commented 9 years ago

NodeJS is also available via Software Collections for Red Hat and derivatives. I've just had a pull request accepted by Puppet Labs for their nodejs module to support parameterization of package names, such that Red Hat users can use that module to install nodejs from Software Collections.