ChrisWren / grunt-link-checker

Run node-simple-crawler to discover broken links on your website
MIT License
33 stars 9 forks source link

Default config throwing error #3

Closed pauleustice closed 10 years ago

pauleustice commented 10 years ago

Hi. When attempting to run a basic setup on a local server, I'm getting this error:

$ grunt checklinks
Running "link-checker:dev" (link-checker) task
Fatal error: Cannot read property 'cyan' of undefined
'link-checker': {
  dev: {
    site: '0.0.0.0:8080'
  }
}

My setup: node@0.10.29 npm@1.4.14 grunt@0.4.5 grunt-link-checker@0.0.4 colors@0.6.2

Any ideas? I guess maybe it's something to do with the colors dependency? This is a fresh install of the package today.

ChrisWren commented 10 years ago

Try localhost instead of 0.0.0.0. I thought I fixed this bug, but will investigate right now. Sorry!

ChrisWren commented 10 years ago

The error occurs if the first URL fails. You have to set the port as options.initialPort and not on the site string. Will update the doc.

ChrisWren commented 10 years ago

Fixed in 0.0.5 release.

pauleustice commented 10 years ago

Thanks very much for the prompt response @ChrisWren, that worked a treat :)