简体   繁体   中英

Browser-Sync with Grunt get an ERR_CONNECTION_REFUSED error

I get this error when using browser-sync with grunt. Here's my gruntfile.js , and yes I've included the browser-sync snippet before the closing tag.

Maybe something with DNS? Thanks!

Check your system to see if anything is running on Port 8000. Also check your router to make sure that it doesn't forward that port. In your terminal run the following command. On a Windows machine you can use the services explorer.

netstat -an | grep 8000

在选项中传递代理对我有用:'localhost / lukashillebrand'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM