ExpressJS - throw er Unhandled error event

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

    I fixed the bug by changing the port which was

    app.set('port', process.env.PORT || 3000);

    and changed to:

    app.set('port', process.env.PORT || 8080);

提交回复
热议问题