Can we see a screenshot of your folder structure? Screenshot from the directory of the gulp file. Try to open up the folders so we can see all the contents.
I never remember how to kill the port, and most likely the operating system you use might have a different way - google search would be the best option for this
So if it’s the port problem, The code above tells browserSync to use a different port (3002). if you get the same error then it is not about the port
The article you are working through has a git repository at with the complete project, I cloned that. Modified the gulp file my adding your code and it worked.
Maybe you could do that too! clone the repo at https://github.com/zellwk/gulp-starter-csstricks Then if you still want to follow the tutorial along, replace the gulp file with your own gulp file. If you don’t get an error, then you may have got a typo somewhere (not a big deal that you don’t know where). If you still get an error, then you have a problem in your operating system, which at least will let you know that you’re asking the wrong question (that the problem is not in your code)
I’m on mac. As far as I know the working project can be located anywhere. Your terminal is pointing inside your working folder, so I don’t see it being an issue.
I never add my work in desktop (it just isn’t part of my workflow) but I have seen tutorials where they do.
But I think you would need to set some configuration up. So if you can’t do it. There is a green button “clone or download” and just choose to download the zip file
That’s all I had! From this point on it all goes over my head it took me hours/days to set up my own system and learned nothing from it, though the links provided by @mawburn look like what you need. Good luck