Sunday, November 17, 2019

Upgrade Node Version on EC2 Instance



Below are few notes for upgrading the Node version on EC2.

1) Connect to your Linux instance as ec2-user using SSH
2) Install node version manager (nvm) by typing the following at the command line.

Warning

AWS does not control the following code. Before you run it, be sure to verify its authenticity and integrity. More information about this code can be found in the nvm GitHub repository.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
We will use nvm to install Node.js because nvm can install multiple versions of Node.js and allow you to switch between them.

3) Activate nvm by typing the following at the command line.

. ~/.nvm/nvm.sh


4) Use nvm to install the latest version of Node.js by typing the following at the command line.

nvm install node

Installing Node.js also installs the Node Package Manager (npm) so you can install additional modules as needed.

5) Test that Node.js is installed and running correctly by typing the following at the command line.

node -e "console.log('Running Node.js ' + process.version)"
This displays the following message that shows the version of Node.js that is running.

Running Node.js VERSION

References:
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html

1 comment:

  1. -- Living Mobile --: Upgrade Node Version On Ec2 Instance >>>>> Download Now

    >>>>> Download Full

    -- Living Mobile --: Upgrade Node Version On Ec2 Instance >>>>> Download LINK

    >>>>> Download Now

    -- Living Mobile --: Upgrade Node Version On Ec2 Instance >>>>> Download Full

    >>>>> Download LINK CV

    ReplyDelete