xxxxxxxxxx
go to the project directory and run in command prompt
npm i express //i stands for install
//for installing globally
npm i express -g
xxxxxxxxxx
//enter in terminal
npm install --save express
After installation, add import:
import express from 'express';
const server = express();
xxxxxxxxxx
$ mkdir myapp
$ cd myapp
$ npm init
then code . open kore index.js file khulte hobe
npm install express
npm install express --no-save