To read the file (text, HTML, JSON, etc) from the system or server using node js, you can do it in two ways first asynchronous (non-blocking) and second synchronous (blocking). You can read a file in NodeJS using fs the module,
Category: Node js
Node js is free open source. Learn Node.js framework in simple and easy steps starting from basic to advanced concepts with examples. In this Node js Tutorial We will discuss various topic of Node js like modules, express, promises, generators, MySql, etc.also we will discuss Free node js chat plugin and create node js chat plugin
Node JS Express Socket IO Chat Application Example
Creating a chat application using express js framework of node js is very easy, for this, you just need to create a project of node js and then install express js, socket.io, and some necessary
Read More Node JS Express Socket IO Chat Application Example
How to Deploy Node.js Application on AWS EC2 Server
It is very easy to deploy Node.js applications to an Amazon AWS EC2 instance, Simply open ssh terminal window and connect to AWS EC2 instance, then install nodejs, npm, and git on your aws ec2
Read More How to Deploy Node.js Application on AWS EC2 Server
How to Update Node.js to Version [18, 20, 21 ,22] Ubuntu Linux
To update node.js version to 18, 20, 21, or 22, just type nvm install <node-version> command to install the new version, and type nvm use <node-version> to switch to the new version on linux ubuntu
Read More How to Update Node.js to Version [18, 20, 21 ,22] Ubuntu Linux
Cannot Find Module npm-cli.js Ubuntu
If you have run any node or npm related command on Ubuntu terminal, and at that time you are seeing “Cannot find module npm-cli.js error” on your terminal. So it means that you do not
Npm Cannot find module npm-cli.js error
The “Npm cannot find module npm-cli.js error” occurs when there are problems with the installation or misconfiguration of Node.js and npm on your system. This can be caused by incomplete or corrupted installation, incorrect environment
How to Install Node js 20 on Ubuntu 22.04
To install node.js version 20.x Ubuntu 22.04 system, You can use 2 simple methods: the first is by using Nodesource, and the second is by using the official repository. Here are 2 simple approaches using
How to Install Node js 18.x|16.x on Ubuntu 22.04
If you want to install 16.x or 18.x version of node.js in your Ubuntu system, for this you can use curl -sL https://deb.nodesource.com/setup_16.x, 18.x -o nodesource_setup.sh and sudo apt install nodejs command. How to Install
Uninstall Node.js on a Mac OS
If you have node.js or npm installed in your mac system. And you want to uninstall node.js and npm in your Mac OS system for some reason. In this tutorial, we will show you 3
How to Install Node.js and NPM on Windows 11|10
It is very easy to install Node.js and npm in Windows system that too without using commands; In this tutorial, we will show you how to install Node JS and NPM on Windows 11|10. And