How can I fix nodemon crashed error in node | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can I fix nodemon crashed error in node

Please help me to fix this problem. This server is running on port 3000 .I Am always getting error when I execute nodemon index.js

8th Mar 2019, 4:47 PM
P Shobha
P Shobha - avatar
4 Answers
+ 3
Can you please post the content in index.js and all directly associated files
8th Mar 2019, 4:49 PM
Seniru
Seniru - avatar
+ 3
Const Express=require("express"); Const request =require ("request "); Const bodyparser=require("body-parser"); Const app=express(); App. use(bodyparser.urlencoded({extracted:true}); App. get("/",function(req,res){ Res.sendFile(__dirname+"/index. js"); }); App. Listen ("/",function(req,res){ Console. Log(""server is running on port 3000);});
8th Mar 2019, 5:16 PM
P Shobha
P Shobha - avatar
+ 2
Yeah sure
8th Mar 2019, 4:52 PM
P Shobha
P Shobha - avatar
+ 1
Please help me to fix it
8th Mar 2019, 5:22 PM
P Shobha
P Shobha - avatar