Technoracle
    Facebook Twitter Instagram
    Facebook Twitter Instagram
    TechnoracleTechnoracle
    • Home
    • AWS
      • EC2
      • Lightsail
      • RDS
      • S3
    • Ubuntu
      • Ubuntu 20.04
      • Ubuntu 22.04
    • AI Tools
    • Web Hosting
    • WordPress
    • Tech News
    Technoracle
    Home»Uncategorized»How to Install Nodejs on Amazon Linux [Step by Step Guide]
    Uncategorized

    How to Install Nodejs on Amazon Linux [Step by Step Guide]

    Rajesh ShivamBy Rajesh ShivamMay 1, 2021Updated:May 18, 2021No Comments2 Mins Read
    Install Nodejs on Amazon Linux
    Install Nodejs on Amazon Linux
    Node.Js Install on Amazon Linux

    Node.js is an open-source, cross-platform JavaScript runtime environment. Using Nodejs, you can build fast, highly scalable applications. In this tutorial, you will learn to configure the yum repository, how to install Nodejs on Amazon Linux EC2 instance, check the NodeJs version.

    You can download and install latest releases from here.

    Page Contents

    • Nodejs Installation on Amazon Linux
      • Step 1: SSH into the EC2 Instance
      • Step 2: Install Node Version Manager
      • Step 3: Activate NVM(Node Version Manager)
      • Step 4: Install Node.js using NVM
      • Step 5: Check Node.js Installation
    • Conclusion

    Nodejs Installation on Amazon Linux

    Log in to the AWS console and create an instance with Amazon Linux.

    Step 1: SSH into the EC2 Instance

    First, SSH into the Amazon Linux EC2 instance. By default user name is ec2-user.

    $ ssh -i Serverkey.pem ec2-user@IP Address of the Instance

    Step 2: Install Node Version Manager

    Second, install node version manager (nvm) by typing the following at the command line.

    $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

    Step 3: Activate NVM(Node Version Manager)

    Next activate NVM by running following command.

    $ . ~/.nvm/nvm.sh

    SSH into the AWS instance and update repository. Now enable node.js yum repository in your system by the following command.

    Step 4: Install Node.js using NVM

    Finally install Nodejs using NVM, which also install NPM(Node Package Manager).

    You can install any package using NPM.

    $ nvm install node

    Step 5: Check Node.js Installation

    Check your Node.js installation by running the following command.

    $ node -e "console.log('Running Node.js ' + process.version)"
    Install Nodejs on Amazon Linux

    Conclusion

    By now you have learned how to install Nodejs on Amazon Linux. If you have any doubt feel free to comment below. I will answer all the queries.

    aws tutorial
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit
    Previous ArticleWhat is AWS Nimble Studio and How it Works
    Next Article How to Install Blender on Ubuntu [Step by Step Guide]
    Rajesh Shivam

    Rajesh Shivam is a seasoned professional with expertise in AWS and Linux System Administration. With over 10 years of freelancing experience, he brings a wealth of knowledge to the table. Rajesh has a strong passion for technology and stays connected with the latest happenings in the field. His dedication and expertise make him a trusted resource for all things tech-related.

    Related Posts

    Uncategorized

    How to Get your First Order On Fiverr in 2023 – 5 Proven tricks

    Read More
    Convert PEM to PPK file
    Uncategorized

    How to Convert PEM to PPK file [Step by Step Guide]

    Read More
    Copy File from Local to Remote Server
    Uncategorized

    How to Copy File from Local to Remote Server Easily

    Read More
    Add A Comment

    Leave A Reply Cancel Reply

    install PHP GD on Ubuntu

    How to Install PHP GD on Ubuntu 22.04 [Easy Guide]

    May 2, 2023
    Install PHP on Ubuntu 22.04

    How to Install PHP on Ubuntu 22.04 [Simple Guide]

    April 26, 2023
    Install PHP 8.0 on Ubuntu

    How to Install PHP 8.0 on Ubuntu 20.04

    April 25, 2023
    Enable PHP Zip Extension

    How to Enable PHP Zip Extension in cPanel

    April 2, 2023

    Subscribe to Blog

    Enter your email address to subscribe to
    this blog and receive notifications of new posts by email.

    Facebook Twitter Instagram Pinterest
    • Sitemap
    • Privacy Policy
    • Disclaimer
    • Term of Services
    © 2023 Technoracle

    Type above and press Enter to search. Press Esc to cancel.

    Click to Copy
    Go to mobile version