Javascript Grunt shell任务未获取完整标准输出

Javascript Grunt shell任务未获取完整标准输出,javascript,node.js,gruntjs,modulus.io,Javascript,Node.js,Gruntjs,Modulus.io,我正在尝试创建一个Grunt任务来运行部署。我已经在本地安装了,以及运行任务的模块。这是我的GrunFile的相关部分: grunt.initConfig({ shell: { deploy: { command: 'modulus deploy', options: { cwd: 'node_modules/.bin/' } } } }); grunt.registerTask('deploy', ['shell:d

我正在尝试创建一个Grunt任务来运行部署。我已经在本地安装了,以及运行任务的模块。这是我的GrunFile的相关部分:

grunt.initConfig({
  shell: {
    deploy: {
      command: 'modulus deploy',
      options: {
        cwd: 'node_modules/.bin/'
      }
    }
  }
});

grunt.registerTask('deploy', ['shell:deploy']);
现在,如果我直接在命令行上运行模数命令,我会得到以下结果:

$ modulus deploy
Welcome to Modulus
[Error] Need to be logged in to execute this command.
Please log in with "modulus login" command.
但是,当我运行grunt任务时,我得到的是:

$ grunt deploy
Running "shell:deploy" (shell) task
Welcome to Modulus

Done, without errors.

Grunt命令文件的输出比在Grunt外部运行同一命令本身要短得多,并且缺少一些关键信息。这可能是什么原因?执行是否会在完全结束之前返回,从而给我一个不完整的stdout?

是否有可能module会改为写入stderr?@jibsales这也发生在我身上,但module代码似乎是一个简单的console.log。@jibsales这和grunt shell