ExpressJS - throw er Unhandled error event

前端 未结 30 1913
囚心锁ツ
囚心锁ツ 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:17

    This is because the port you are using to run the script is already in use. You have to stop all other nodes which are using that post. for that, you can check all node by

    ps -e
    

    OR for node process only use ps -ef | grep node This will give you the list of all node process with id

    to Kill all node process

    sudo killall -9 node
    

    Or for the specific id sudo kill -9 id

提交回复
热议问题