node.js error message events.js:183 throw er; // Unhandled 'error' event

后端 未结 13 1062
囚心锁ツ
囚心锁ツ 2020-12-18 04:25

Playing around Microsoft\'s botframework, when I try to run the app.js file, which is the main file of the bot, the first time is fine, after I close the bot emulator, and a

相关标签:
13条回答
  • 2020-12-18 04:33

    faced with the same issue

    try to watch install watchman or upgrade it.

      brew install watchman
    
      brew upgrade watchman
    
    0 讨论(0)
  • 2020-12-18 04:34

    Find the process that is using the port and kill it.

    Assuming the server port is 8000.

    1) C:> netstat -aon | findstr 8000

    This command will return the Process ID (PID).

    2) C:> taskkill /F /PID 7848

    This command will kill the Process by PID.

    0 讨论(0)
  • 2020-12-18 04:36

    I solved the issue using this command in my terminal on Linux.

    rm -rf node_modules
    rm package-lock.json yarn.lock
    npm cache clear --force
    npm install
    
    0 讨论(0)
  • 2020-12-18 04:38

    The port you are listening to is already being listened by another process.

    When I faced to this error I killed the process using Windows PowerShell (because I used Windows)

    1. open the windows powershell
    2. type ps and then you can get list of processes
    3. find the process named node, and note the Id
    4. type Stop-process <Id>

    I think that it is help for windows users.

    0 讨论(0)
  • 2020-12-18 04:40

    I also got the same problem and tried many ways but finally got this ,this work well

    npm install ws@3.3.2 --save-dev --save-exact

    refer to this link for more clarifications https://github.com/ionic-team/ionic-cli/issues/2922

    0 讨论(0)
  • 2020-12-18 04:40

    I did also face the same problem. Installing of npm install ws@3.3.2 --save-dev --save-exact was not fix this. Later I came to know that there is an another website hosted by IIS in the same port where I configured for Node JS express server. Stopping of IIS website can get rid out of this issue.

    0 讨论(0)
提交回复
热议问题