I installed lintchecker and, as per Chapter 5, created the gruntfile.js but got the error in the title.
On checking the actual installed filename in Windows/ Users/u_name/AppData/Roaming/npm, I found that the name was 'lintcheck'.
This name works at the command prompt.
I changed the command in Gruntfile.js to:
cmd: 'linkcheck http://localhost:3000'
grunt now works OK too