咕噜声的问题 - 警告:任务" ngAnnotate:dist"失败。使用--force继续

时间:2017-02-06 00:13:44

标签: javascript npm gruntjs ng-annotate

我之前运行良好的Grunt任务有问题。我不确定为什么现在这样。这是错误:

Running "ngAnnotate:dist" (ngAnnotate) task
Generating ".tmp/concat/scripts/scripts.js" from: ".tmp/concat/scripts/scripts.js"...ERROR
>> error: couldn't process source due to parse error
>> Assigning to rvalue (8818:4)
Warning: Task "ngAnnotate:dist" failed. Use --force to continue.
Error: Task "ngAnnotate:dist" failed.
at Task.<anonymous> (/home/hakan/webCondecca/node_modules/grunt/lib/util/task.js:205:15)
at Task.runTaskFn (/home/hakan/webCondecca/node_modules/grunt/lib/util/task.js:254:9)
at Task.<anonymous> (/home/hakan/webCondecca/node_modules/grunt/lib/util/task.js:300:12)
at /home/hakan/webCondecca/node_modules/grunt/lib/util/task.js:227:11
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

Aborted due to warnings.

我对Grunt不太熟悉,这是我实际使用过的第一个项目。我很乐意得到一些帮助。谢谢!

1 个答案:

答案 0 :(得分:-1)

您的html文件中可能包含javascript代码,我喜欢这样的人看到图片erro ng-annotate grunt