Showing posts with label Node JS. Show all posts
Showing posts with label Node JS. Show all posts

Tuesday, November 24, 2020

Steps to Install Node JS in Linux (RedHat and Ubuntu) - Mithun Technologies - 9980923226

 

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/ 
Steps to Install Node JS in Linux (RedHat and Ubuntu)
  Method -1
----------------

Login into Linux server and switch to the root user using below command.

#sudo su -

Install the NodeJS package as follows.

In RedHat distribution

#yum install nodejs -y   

#yum install npm -y


In Ubuntu distribution

#apt-get install nodejs -y

 #apy-get install npm -y

------------------------------------------------------------------------------------------------------------------------------------------

  Method -2 (Install the specific version)

----------------------------------------------------

Login into Linux server and switch to the root user using below command.

#sudo su -

#cd /opt


Download the node js specific version of software and extract.

yum install wget tar -y ---> RHEL
apt-get install wget tar -y --> Ubuntu

wget https://nodejs.org/dist/v10.15.1/node-v10.15.1-linux-x64.tar.xz
tar -xvf node-v10.15.1-linux-x64.tar.xz


Create a soft link.

ln -s /opt/node-v10.15.1-linux-x64/bin/node /usr/bin/node
ln -s /opt/node-v10.15.1-linux-x64/bin/npm /usr/bin/npm
ln -s /opt/node-v10.15.1-linux-x64/bin/npx /usr/bin/npx

Check the version

node --version
#node -v
npm --version
#npm -v

#https://github.com/nodejs/help/wiki/Installation


 

Friday, September 11, 2020

Steps to Install Node JS in MacBook - Mithun Technologies - 9980923226

 

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/ 
Steps to Install Node JS in MacBook
 
Download the nvm install script via cURL, install NVM package with below command.curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash 
Check NVM installed successfully and which version of NVM using below command. 
nvm --version

Install the latest version of Nod Js with below command. 

nvm install node Use the latest version of Node JSnvm use nodeInstall the latest LTS version of Node JSnvm install --ltsUse the latest LTS verison of Node JSnvm use --ltsInstall the v10.17.0 version of Node JSnvm install v10.17.0Use the  v10.17.0 verison of Node JSnvm use  v10.17.0

Run app.js using node v0.10.32 

nvm run 0.10.32 app.js    

Set default node version on a shell  

nvm alias default 0.10.32                     

Uninstall NVM

To remove, delete, or uninstall nvm - just remove the `$NVM_DIR` folder (usually `~/.nvm`)

 

Ansible Installation in Amazon Linux - Mithun Technologies - 9980923226

  Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com                                                 ...