Javascript 为什么在使用grunt notify时会从growl得到错误代码?
我安装了以在桌面上获取消息 以下是Gruntfile.js: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
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