I try to use the gshint grunt module to check my code, but always get the following error:
Running "jshint" task [D] Task source: C:\Coursera\03. Intro Angular JS\conFusion\node_modules\grunt-contrib-jshint\tasks\jshint.js Running "jshint:all" (jshint) task [D] Task source: C:\Coursera\03. Intro Angular JS\conFusion\node_modules\grunt-contrib-jshint\tasks\jshint.js Verifying property jshint.all exists in config...OK Files: Gruntfile.js, app/scripts/app.js Options: force=false, reporterOutput=null, jshintrc=".jshintrc", reporter={} Warning: Path must be a string. Received { toString: [Function], reporter: [Function] } Use --force to continue.
the problem is that even when using -verbose and -debug it doesn’t show anything to work with an error, just “the path should be a string”, I checked the file using JSLint (using brackets), and it works quite well, the site is also excellent working.
what i have done so far.
- Unistalled node.js and node modules 3 times (each time trying to change something).
- tried to limit my grunt task to just check a very simple js file, and also does not work, this means that it is not related to the code or my gruntfile.js.
minimalistix
source share