1

After reinstalling Windows 10, I get the following error upon launching gulp watch:

Error: listen EADDRINUSE :::3000 at Object._errnoException (util.js:992:11) ... at module.exports.plugin (D:\xampp\htdocs\blagnac\wp-content\themes\blagnac\gulp\node_modules\browser-sync\dist\server\index.js:27:25)

enter image description here

I tried npm install browser-sync --save-dev, I tried npm install, and I tried npm rebuild. Nothing works. Any idea?

drake035
  • 2,935
  • 25
  • 85
  • 161

1 Answers1

1

The error is telling you that there is already a process running in port 3000.

Option 1 (preferred)

In order to run gulp watch on port 3000, you need to kill the existing process that is running on port 3000. The steps for killing a process are given in this SO answer.

Option 2

An alternative would be change the port in which gulp runs from 3000 to something else say 3001.

Anu
  • 999
  • 6
  • 12