ExpressJS - throw er Unhandled error event

前端 未结 30 1911
囚心锁ツ
囚心锁ツ 2020-12-12 09:30

I created expressjs application using the following commands:

express -e folderName
npm install ejs --save
npm install

When I run the appli

30条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 10:09

    We do get similar error when we sometimes run our express app. We have to follow the same in that case. We need to check if its running in any terminal. If you want to find and kill process, follow these steps:

    • ps aux | grep node
    • Find the process ID (second from the left):
    • kill -9 PRCOCESS_ID

    OR

    Use a single command to close all the running node processes.

    ps aux | awk '/node/{print $2}' | xargs kill -9
    

提交回复
热议问题