跑咕噜声和詹金斯

时间:2015-10-22 23:06:22

标签: node.js jenkins gruntjs grunt-cli

我让jenkins运行grunt任务。我有jenkins运行命令:

grunt name-of-tasks
主服务器上的

(我有主/从设置)它能够正确运行grunt任务,但是,在从服务器上,它无法运行grunt任务。我收到错误:

Loading "Gruntfile.js" tasks...[31mERROR[39m
[31m>> [39mError: Cannot find module '...
[33mWarning: Task "example" not found. Use --force to continue.[39m
我错过了什么?

1 个答案:

答案 0 :(得分:0)

您似乎缺少一些npm模块。尝试在npm install

之前运行grunt