找不到从 CLI 运行 PHP 的 grunt-shell 任务
grunt-shell task for running php from cli not found
我从咕噜咕噜开始。我想从 CLI 执行几个 php 文件。
所以我安装了咕噜咕噜的外壳 npm install --save-dev grunt-shell
现在我有这个咕噜咕噜的文件:
module.exports = function(grunt) {
grunt.initConfig({
shell: {
php: {
multiple: {
command: [
'php -f /home/leandro/oskar.php',
'php -f /home/leandro/oskar2.php'
].join('&')
}
}
}
});
grunt.registerTask('default', ['shell:php']);
};
我已经尝试了调用任务的所有组合,但输出始终是:
Warning: Task "shell:php" not found. Use --force to continue.
Aborted due to warnings.
好吧,我从Grunt开始,似乎节点的package.json是强制性的。它适用于它!:)
相关文章:
- 可以't使用grunt-bower任务插件运行我的grunt-task
- Grunt Copy任务不复制父文件夹's文件保存到正确的文件夹中
- Grunt为任务设置选项,并使用新值运行该任务
- 找不到从 CLI 运行 PHP 的 grunt-shell 任务
- 用于开发/生产环境的交替grunt.js任务
- 从另一个任务访问Grunt当前任务
- 未使用grunt找到任务
- grunt-dalekjs任务在执行后不会关闭chrome
- Grunt手表任务不起作用
- 不能让Grunt ' watch '任务运行
- 在Visual Studio 2015中绑定Grunt手表任务
- Grunt监视任务无法翻译ES6代码
- 使用grunt-crx任务出错
- Grunt sass任务产生错误,由于波旁包
- Grunt postcss任务排除文件
- 我应该使用哪个grunt traceur任务
- 配置grunt copy任务,排除文件/文件夹
- Grunt -运行任务前动态设置配置
- 使用Grunt-uglify任务来破坏JS代码
- Grunt Watch任务Livereload选项指向Express服务器原因“;watch.livereload.fi