How to Install nodejs in termux

Learn How to install nodejs in termux
1 min read

Node.js is a powerful JavaScript runtime built on Chrome's V8 JavaScript engine. It allows you to run JavaScript on the server side, which can be used to create many applications, from simple command-line tools to complex web applications. This blog post will show you how to install Node.js on your Android device using Termux.

NodeJs in termux

You can install nodejs and npm in termux and build javascript applications. You can install express js, build web applications, build telegram bots and so on.

Install node js termux

To install Node.js on Termux, follow these steps:

1. First, open the Termux app on your Android device and update the package manager with the following command:

pkg update && pkg upgrade -y

2. Type the below command to install nodejs

 pkg install nodejs

3. After successful installation, you confirm and can check its version by typing the below command

node -v
Nodejs

4. To run Node.js files/scripts, you can follow 

node script.js

where the script is the starting point of the app or a js file

npm will be automatically installed with node.js, you can use the node package manager by typing npm in termux 

Hi, I'm Basudev
A Professional Blogger & Hacker Interested in Infosec, Web Development, Programming

You may like these posts

  • Goland or Go language is a popular open-source programming language developed by Google engineers, and it is one of the faster languages, In this tutorial, you will learn how …
  •  Php is a popular scripting language for web development; Php is easy to use and has a simple syntax. In this article, we will show you how to install PHP in termuxTo install …
  • How to transfer files from Kali Linux to windows in VirtualBox Now you can share files from windows to kali Linux virtual machines, and vice versa, A few y…
  • Git is a popular version control system that allows developers to track changes and collaborate on their code. This article will show you how to install Git in Termux So that you c…
  • Node.js is a powerful JavaScript runtime built on Chrome's V8 JavaScript engine. It allows you to run JavaScript on the server side, which can be used to create many applica…
  • In this tutorial, you will learn how to install python in termux and use python files on your androidWhat is Python?Python is a programming language used to build software, website…

Post a Comment

Comments will be reviewed before publishing