when you encounter this error, follow the steps below to solve it. Error: listen EADDRINUSE: address already in use 127.0.0.1:8545 at Server.setupListenHandle [as _listen2] (net.js:1331:16) at listenInCluster (net.js:1379:12) at doListen (net.js:1516:7) at processTicksAndRejections (internal/process/task_queues.js:83:21) Solution. Use your terminal or command-line tool to execute the following: 1. ps aux | grep node 2. search for pts/x //replace x with the number on your screen, in my case, it was 4. use it in the next step finally 3. killall -4 node