Step 1: Write npm init command in your terminal. Step 2: Install Express.js by running the following command in your terminal. npm i express Step…