我让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
我错过了什么?
答案 0 :(得分:0)
您似乎缺少一些npm
模块。尝试在npm install
grunt