How To Install Node.js on Android with Termux?

September 27, 2023Fazle Rabbi
Thumbnail

Learn how to set up Node.js on your Android device using the Termux app. This step-by-step guide provides easy instructions to get Node.js up and running, allowing you to develop and run applications directly on your phone. Start coding on the go with this straightforward tutorial!

Introduction

Termux is a powerful Android app that emulates a Linux environment, allowing users to run various commands and install packages. In this article, we will guide you through the process of installing Node.js on your Android device using Termux.

Step 1: Install Termux from Fdroid

  1. At first Download Termux from the given link
  2. Install Termux in your phone

Step 2: Launch Termux and Update the Package List

  1. Open the Termux app.
  2. To ensure that you have the latest package information, type the following command and press Enter:
    apt update && apt upgrade
    

Step 3: Install Node.js

  1. In Termux, use the following command to install Node.js:
    pkg install nodejs-lts
    
    Press Enter, and Termux will automatically download and install Node.js on your Android device.

Step 4: Verify the Installation

  1. To confirm that Node.js has been successfully installed, type the following command:
    node -v
    
    This command will display the installed Node.js version.

Conclusion

Congratulations! You have successfully installed Node.js on your Android device using Termux. You can now start developing and running Node.js applications directly on your phone. Enjoy coding!