简体   繁体   English

如何使用gulp-notify-growl?

[英]How to use gulp-notify-growl?

I have remote-server(192.168.0.104) and work on laptop window computer(192.168.0.100) with win7. 我有远程服务器(192.168.0.104),并在带有Win7的笔记本电脑窗口计算机(192.168.0.100)上工作。 I install growl for window. 我为窗口安装咆哮声。

server 服务器

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 %>
});

laptop 笔记本电脑

tap security 点击安全

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

add "test" to Password Manager

'Compile Error' display in terminal. 终端中显示“编译错误”。

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

but notifications not appear in window. 但通知不会出现在窗口中。

How to get notifications? 如何获得通知?

Maybe you are using gulp-notify instead of gulp-notify-growl . 也许您正在使用gulp-notify而不是gulp-notify-growl With gulp-notify-growl the code you are using seems to be working. 通过gulp-notify-growl ,您正在使用的代码似乎可以正常工作。 Find the correct module and install it again. 找到正确的模块,然后重新安装。 Even though gulp-notify-growl is deprecated, it still works. 即使不推荐使用gulp-notify-growl ,它仍然有效。

Note that when Growls picks the gulp app, you can configure the forwarding with the Growl UI, which is easier! 需要注意的是,当咆哮采gulp应用程序,你可以配置低吼UI,这是比较容易的转发!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM