我有远程服务器(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
但通知不会出现在窗口中。
如何获取通知?