【问题标题】:How to use gulp-notify-growl?如何使用 gulp-notify-growl?
【发布时间】:2015-08-08 06:35:06
【问题描述】:

我有远程服务器(192.168.0.104)并在带有 win7 的笔记本电脑窗口计算机(192.168.0.100)上工作。 我为窗口安装咆哮。

服务器

var growl = require('gulp-notify-growl');
var growlnotifier = growl({
    hostname: "192.168.0.100",
    password: "test"
}, "TestApp");

growlnotifier.onError({
    title: 'Compile Error',
    message: '<%= error.message %>
});

笔记本电脑

点击安全

checked  Require password for LAN apps
checked  Allow network notification
checked  Allow clients to subscribe to notifications

add "test" to Password Manager

在终端显示“编译错误”。

[15:17:43] gulp-notify: [Compile Error] Cannot find module

但通知不会出现在窗口中。

如何获取通知?

【问题讨论】:

    标签: growl gulp-notify


    【解决方案1】:

    也许您使用的是gulp-notify 而不是gulp-notify-growl。使用gulp-notify-growl,您使用的代码似乎可以正常工作。找到正确的模块并重新安装。即使gulp-notify-growl 已被弃用,它仍然有效。

    请注意,当 Growl 选择 gulp 应用程序时,您可以使用 Growl UI 配置转发,这更容易!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-12
      • 1970-01-01
      相关资源
      最近更新 更多