gulp-notify:[通知程序中的错误]插件'gulp-notify'中找不到错误:notify-send [英] gulp-notify: [Error in notifier] Error in plugin 'gulp-notify' not found: notify-send
问题描述
我试图在安装Laravel 5.1时设置Gulp。我已经运行了命令 npm install
,如Laravel文档中所述,并且工作正常。
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
谢谢
Thanks
推荐答案
我自己也找到了解决这个问题的办法。我在我的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'中找不到错误:notify-send的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!