gulp-notify:[通知程序错误]插件“gulp-notify"中的错误未找到:通知发送 [英] gulp-notify: [Error in notifier] Error in plugin 'gulp-notify' not found: notify-send
问题描述
我正在尝试在我安装的 Laravel 5.1 中设置 Gulp.我已经按照 Laravel 文档中的说明运行了命令 npm install
并且效果很好.
I'm trying to setup Gulp in my install of Laravel 5.1. I've ran then command npm install
as specified in the Laravel documentation and that's worked fine.
但是,当我现在运行命令 gulp
时,我收到以下消息:
However, when I now run the command gulp
I get the following message:
ubuntu@NAME:/var/www/html/FOLDER# gulp
[14:04:56] Using gulpfile /var/www/html/FOLDER/gulpfile.js
[14:04:56] Starting 'default'...
[14:04:56] Starting 'sass'...
[14:04:56] Running Sass: resources/assets/sass/app.scss
[14:04:56] Finished 'default' after 532 ms
[14:04:56] gulp-notify: [Laravel Elixir] Sass Compiled!
[14:04:56] Finished 'sass' after 666 ms
[14:04:56] gulp-notify: [Error in notifier] Error in plugin 'gulp-notify'
not found: notify-send
还有其他人遇到过这个错误吗?
Has anyone else encountered the error?
gulp-notify: [Error in notifier] Error in plugin 'gulp-notify'
not found: notify-send
谢谢
推荐答案
我自己找到了解决此问题的方法.我在我的 Ubuntu 机器上运行了以下命令:
I've found a resolution to this issue myself. I ran the following commands on my Ubuntu box:
sudo apt-get update
sudo apt-get install libnotify-bin
之后,我现在可以运行 gulp
并获得以下信息:
After that, I can now run gulp
and get the following:
ubuntu@NAME:/var/www/html/FOLDER# gulp
[14:06:59] Using gulpfile /var/www/html/FOLDER/gulpfile.js
[14:06:59] Starting 'default'...
[14:06:59] Starting 'sass'...
[14:06:59] Running Sass: resources/assets/sass/app.scss
[14:07:00] Finished 'default' after 736 ms
[14:07:00] gulp-notify: [Laravel Elixir] Sass Compiled!
[14:07:00] Finished 'sass' after 931 ms
一切看起来都不错.希望这对其他 SO 用户有用.
All looks good. Hopefully that will be of use to other SO users.
这篇关于gulp-notify:[通知程序错误]插件“gulp-notify"中的错误未找到:通知发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!