The output should look like this: => Close and reopen your terminal to start using nvm or run the following to use it now: Add this script to Bash or the ZSH profile. This script will act as a replica to the nvm repository derived from Github to ~/.nvm. Start by downloading the nvm script using the command below: $ curl -o- | bash You can use it in the process of installing and uninstalling a certain version of Node.js which allows the user to have several versions of Node.js you need to test or use.įollow these steps to start installing Node.js and npm with NVM on CentOS server. Node Version Manager (NVM) is a described as a script that helps a user to manage different versions of Node.js. To check the Node.js Package Manager version: $ npm -version The output should look like this: V8.11.1 To confirm the actual version of Node.js run the command below: $ node -version To confirm that Node.js installation went through, run the commands below to print the current versions of Node.js and npm. Verifying The installation Of Node.js and npm Installing Node.js And Node.js Package Manager With yumĪfter enabling the repository, now start installing Node.js and npm using the command below: $ sudo yum install nodejs 3. Then use the command below to add this yum repository: $ curl -sL | sudo bash - 2. If the current Node.js LTS version is 8.x, and you require version 10, simply change the setup_8.x with setup_10.x. The first step is to include the NodeSource repository to your server. The following steps will help you with the installation of Node.js and npm using the NodeSource repository on CentOS server. NodeSource company provides efficient Node services and ensures there is an up-to-date Node.js repository for Linux. Installing Node.js and Node.js Package Manager from The NodeSource
0 Comments
Leave a Reply. |