events.js: 141 throw er; // Unhandled 'error' event

前端 未结 8 655

I\'m trying to run node 4.2.2 on a Mac OS and i\'m not understanding why every time i get this error message:

events.js:141
      throw er; // Unhandled \'er         


        
8条回答
  •  醉话见心
    2020-12-24 12:08

    so it throw an error ,Unhandled 'error' event,which means you need handle the error event,add function on this event and print the error,you will find the reason and your program will act normal.

提交回复
热议问题