Node.js 为什么运行execFile方法在控制台中不显示来自其回调的预期文本?

Node.js 为什么运行execFile方法在控制台中不显示来自其回调的预期文本?,node.js,gulp,Node.js,Gulp,我正在使用gulp start任务运行indx.coffee文件,nodemon如下所示: 1 var gulp=require('gulp'); 2 var execFile=require('child_process')。execFile; 3. 4吞咽任务(“开始”,功能(cb){ 5执行文件('nodemon',['src/index.coffee'],函数(err,stdo,stde){ 6如果(错误) 7返回cb(错误); 8其他 9 console.log('服务器已启动');

我正在使用gulp start任务运行indx.coffee文件,nodemon如下所示:

1 var gulp=require('gulp');
2 var execFile=require('child_process')。execFile;
3.
4吞咽任务(“开始”,功能(cb){
5执行文件('nodemon',['src/index.coffee'],函数(err,stdo,stde){
6如果(错误)
7返回cb(错误);
8其他
9 console.log('服务器已启动');
10   });
11 });