11/2/2023 0 Comments Install node js on redhat![]() You also need development tools to build native add-ons to be installed on your system.įor Latest Release:- yum install -y gcc-c++ makeįor Stable Release:- yum install -y gcc-c++ makeĪfter adding a yum repository in your system lets install Node.js package. Step 1 – Add Node.js Yum Repositoryįirst of all, You need to enable node.js yum repository in your system provided by the Node.js official website. Use this tutorial to add yum repository and install Latest Nodejs to CentOS/RHEL 7 systems with the simple commands. ![]() Latest version node.js yum repository is maintaining by its official website. ![]() If you want to test your Node.js installation, create a web server and run with Node.js.Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications. ![]() firewall-cmd -permanent -add-port=8080/tcpįirewall-cmd -reload Create Test Web Server So, to access the application, we need to allow TCP port 8080 in the firewall. In the next section, we will create a web server that will listen on TCP port 8080 to validate the NodeJS application. To install the Yarn package manager, run: curl -sL -o /etc//yarn.repo Yarn is another package manager to install and manage packages for Node.js. yum install -y nodejsĬheck the version of Node.js using the following command. NPM (Node Package Manager) will also be installed along with Node.js. Once after adding the PPA on the server, install the Node.js by using the following command. Node.js 12.x (LTS) yum -y install -y curlĬurl -sL | bash - Node.js 13.x (Latest Version) yum -y install -y curl You can choose either one of the Node.js version to install on your machine. NodeSource maintains Node.js binary packages for CentOS, Ubuntu and Debian operating systems. yum groupinstall -y 'Development Tools' Configure Node.js Repository ![]() You may need to install build tools if you want to compile and install native addons from npm. Check out the official page to get the latest version of Node.js. There are two versions of Node.js is available for the users. CentOS 8 Debian 10/9 Ubuntu 18.04 Ubuntu 16.04 Node.js Versions ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |