jit-grunt:找不到“监视”任务的插件

时间:2018-09-25 07:14:42

标签: node.js gruntjs grunt-contrib-watch

执行>>“ grunt server”之后,我看到了这些错误,我不知道在什么地方以及需要附加或分离某些代码的地方。 另一件事是DeprecationWarning:虽然在代码中我没有写过node --debugnode --debug-brk

$ grunt server
Running "server" task
>> The `server` task has been deprecated. Use `grunt serve` to start a server.

Running "serve" task

Running "clean:server" (clean) task
>> 0 paths cleaned.

Running "env:all" (env) task

Running "express:dev" (express) task
Starting background Express server
(node:5497) [DEP0062] DeprecationWarning: `node --debug` and `node --debug-brk` are invalid. Please use `node --inspect` or `node --inspect-brk` instead.
Stopping Express server

Running "wait" task
>> Waiting for server reload...
Done waiting!

jit-grunt: Plugin for the "watch" task not found.
If you have installed the plugin already, please setting the static mapping.
See https://github.com/shootaroo/jit-grunt#static-mappings

Warning: Task "watch" failed. Use --force to continue.

Aborted due to warnings.


Execution Time (2018-09-25 12:24:48 UTC+5:30)
loading tasks  124ms  ▇▇▇▇ 7%
express:dev    106ms  ▇▇▇ 6%
wait            1.5s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 85%
Total 1.8s
  

解决方案   npm install grunt-contrib --save-dev   并将此行添加到grunt.js的最后一行之前:   grunt.loadNpmTasks('grunt-contrib');

0 个答案:

没有答案