我一直在尝试使用jshint grunt模块来验证我的代码,但我总是得到以下错误:
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.
Run Code Online (Sandbox Code Playgroud)
问题是,即使使用--verbose和-debug,它也没有显示任何可以处理错误的内容,只是"路径必须是一个字符串",我用JSLint验证了文件(使用括号)并且它工作得很好,网站也行得很好.
到目前为止我做了什么.