约曼脚手架后,"grunt serve"不起作用



我按照Yeoman教程学习了T,但它对我不起作用。

我收到此错误:

C:UsersImrayProjectsmyProjv2>grunt serve
Loading "imagemin.js" tasks...ERROR
>> Error: Cannot find module 'rimraf'
Loading "watch.js" tasks...ERROR
>> Error: Cannot find module 'lodash'
Running "serve" task
Warning: Task "watch" not found. Use --force to continue.
Aborted due to warnings.

Execution Time (2014-12-14 15:38:18 UTC)
loading tasks  9ms  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 45%
serve          9ms  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 45%
Total 20ms

知道为什么我会收到此错误以及如何克服它吗?

看起来您没有正确安装依赖项。

做一个npm installbower install,成功完成后再次尝试grunt serve

最新更新