Infinity loading

You don’t have a start script. Add this line to your package.json's scripts:

"start": "node ."
1 Like

You can do this in your main file

const express = require('express');
const app = express();

This Code require express package

  1. Go to package.json and Click add package
  2. Then type express and Click express.
  3. Go to main file (server.js)
  4. Type the code i said above.

This Solve your problem