【发布时间】:2014-12-18 18:37:58
【问题描述】:
我正在尝试在 Yeoman 脚手架上运行 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
我看到了很多问题,但没有一个与此错误消息有关。我假设这只是我缺少的东西。有人对可能导致这种情况的原因有任何建议吗?
提前致谢。
【问题讨论】:
-
您是否运行
npm install来安装依赖项?这些模块是否出现在 node_modules 目录中?
标签: gruntjs yeoman yeoman-generator