(You could replace stable with a specific node version number)Īnd that’s all! node and npm are available from this specific user, no need to compile node from source to use it from CentOS. To install Node.js 14.x from the command line, run the following as a user with ALLOBJ special authority: yum install nodejs14 Node.js can also be installed with the IBM i Access Client Solutions product. Turns out this is exactly what I wanted since it would simplify the migration if I need to move my testing environment to another server. It suggests to use nave, a virtual environment for node that will install npm and node.js just for the local user. Installed: nodejs.x8664 2:13.7.0-1nodesource Complete node -version v13.7.0 As we see above nodejs version 13.7.0 is installed. All I needed node.js for was to run tests from the mocha test framework.Īfter much research I finally found an answer on serverfault (a branch of StackOverflow). Lets now install the latest version Node.js v13.x curl -sL sudo bash - yum -y install nodejs You should see following output. Compiling from source was a solution but I really did not want to install all the development tools on that machine that is essentially just a testing server. However, no matter how much I tried, this package seems unavailable on CentOS 5. The node.js documentation mentions that we should be adding the EPEL repository and then using “yum install npm” to install it. I was having lots of difficulties to install node.js / npm on a server running CentOS 5.
0 Comments
Leave a Reply. |