Gruntjs 尝试在Yeoman脚手架上运行grunt Service时出错

Gruntjs 尝试在Yeoman脚手架上运行grunt Service时出错,gruntjs,yeoman,yeoman-generator,Gruntjs,Yeoman,Yeoman Generator,我试图在约曼脚手架上运行grunt serve,这种情况一直发生: Gizmo:testapp brianwalborn$ grunt connect >> Local Npm module "grunt-contrib-connect" not found. Is it installed? Loading "imagemin.js" tasks...ERROR >> Error: Cannot find module 'imagemin-gifsicle' >&

我试图在约曼脚手架上运行grunt serve,这种情况一直发生:

Gizmo:testapp brianwalborn$ grunt connect
>> Local Npm module "grunt-contrib-connect" not found. Is it installed?
Loading "imagemin.js" tasks...ERROR
>> Error: Cannot find module 'imagemin-gifsicle'
>> Local Npm module "grunt-mocha" not found. Is it installed?
Warning: Task "connect" not found. Use --force to continue.

Aborted due to warnings.


Execution Time (2014-10-23 06:07:08 UTC)
loading tasks  859ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100%
Total 860ms
我看到了很多问题,但没有一个是关于这个错误消息的。我想这只是我错过的东西。有没有人对造成这种情况的原因有什么建议


提前感谢。

您是否使用运行grunt任务的同一用户安装了npm软件包

也许grunt正在寻找一个空的npm缓存文件夹

你可以尝试的另一件事是:

更新到最近的grunt contrib connect和/或grunt contrib imagemin版本

清理npm缓存,这是命令:npm cache clear

如果您正在运行Linux,请确保安装了build essential软件包

您是否运行了npm安装来安装依赖项?这些模块是否显示在节点\模块目录中?