问题描述
我无法从 Gulp 4 接收通知以在 MacOS Big Sur 上工作。在较旧的操作系统版本和 Gulp 3 中它确实有效,但现在我什至无法让它们出现。
我试过 gulp-notify 和 node-notifier,两者都不会在通知中心显示通知。
gulp-notify 示例:
const gulp_notify = require('gulp-notify');
Gulp 4 函数定义:
function notify(cb) {
gulp_notify('Notification from Gulp 4');
cb();
}
导出:
exports.notify = notify;
(全部在 gulpfile.js 中)
运行 gulp notify
时的终端输出
➜ gulp notify
[11:15:59] Using gulpfile /path/to/my/gulpfile.js
[11:15:59] Starting 'notify'...
[11:15:59] Finished 'notify' after 1.42 ms
非常感谢任何帮助(代码和/或配置设置)。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)