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
faced with the same issue
try to watch install watchman or upgrade it.
brew install watchman
brew upgrade watchman
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.
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
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)
ps
and then you can get list of processesStop-process <Id>
I think that it is help for windows users.
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
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.