You don’t have a start
script. Add this line to your package.json
's scripts:
"start": "node ."
1 Like
@Mainlessone
You can do this in your main file
const express = require('express');
const app = express();
app.listen(process.env.PORT);
This Code require express
package
- Go to
package.json
and Clickadd package
- Then type
express
and Click express. - Go to main file (server.js)
- Type the code i said above.
This Solve your problem