

Create a file demo_server.jsĪnd add following content var http = require('http') Let's create a web server with “Welcome Node.js” text. If you want to test your node.js install. Step 3 – Create Demo Web Server (Optional) Results is going to be displayed ~]# node -vĪlso, check the version of npm. You can find more details about current version on the node.js official website. Or: yum groupinstall 'Development Tools' (which you can push on dev env server)Īfter installing node.js application/server, verify and check the installed version. To compile and install native add-ons from npm you may also need to install build tools: yum install gcc-c++ make

Then install, as root: yum -y install nodejs Run as root on RHEL, CentOS or Fedora, for Node.js v6 LTS: curl -silent -location | bash -Īlternatively for Node.js 8: curl -silent -location | bash -Īlternatively for Node.js 0.10: curl -silent -location | bash. Since we base on CentOS 6 and 7 version we will push following commands: You also need development tools to build native addons to be installed on your system as described here Today I am going to explain here briefly how to install latest NodeJS server with some packages (Grunt - ).įirst, we will add a node.js yum repository in our system provided by the NodeJS official website. More about NodeJS project you can find on their website here: Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. Node.js is a free open source platform built on Chrome's JavaScript runtime for easily building fast and scalable network applications. Menu How To Install Latest Nodejs and NPM on CentOS/RHEL 7/6 16 July 2017 on nodejs, npm, node, nodejs linux, nodejs centos
