Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 为什么在使用grunt notify时会从growl得到错误代码?_Javascript_Node.js_Gruntjs_Growl For Windows_Grunt Notify - Fatal编程技术网

Javascript 为什么在使用grunt notify时会从growl得到错误代码?

Javascript 为什么在使用grunt notify时会从growl得到错误代码?,javascript,node.js,gruntjs,growl-for-windows,grunt-notify,Javascript,Node.js,Gruntjs,Growl For Windows,Grunt Notify,我安装了以在桌面上获取消息 以下是Gruntfile.js: module.exports = function(grunt) { grunt.initConfig({ notify: { test: { options: { message: "YO" } } } }); grunt.loadNpmTasks('grunt-notify'); // simplified exampl

我安装了以在桌面上获取消息

以下是Gruntfile.js:

module.exports = function(grunt) {
  grunt.initConfig({
    notify: {
      test: {
        options: {
          message: "YO"
        }
      }
    }
  });

  grunt.loadNpmTasks('grunt-notify');

  // simplified example
  grunt.registerTask('default', ['notify:test']);
};
grunt-v上的控制台输出

我们可以看到一个返回代码:4294967295-1转换为无符号32位值

如果我手动执行以下命令行:E:\Temp>growlnotify/I:E:\Temp\node\u modules\grunt notify\images\grunt-logo.png YO/t:Temp

我得到的信息没有徽标:

那么,为什么我在通过grunt notify传递时得到一个错误代码,而不是在手动行命令上

注意:我使用的是Windows7Pro

编辑:在以下问题之后:,我成功地使用命令行获取图像:

C:\temp>growlnotify /i:"C:/temp/node_modules/grunt-notify/images/grunt-logo.png"  "YO" /t:temp

但是通过grunt仍然不起作用…

我最好将其视为-1,哈哈。我也有同样的问题,我想彻底解决这个问题!
C:\temp>growlnotify /i:"C:/temp/node_modules/grunt-notify/images/grunt-logo.png"  "YO" /t:temp