2015-07-15 4 views
11

Sto provando a configurare Gulp nella mia installazione di Laravel 5.1. Ho eseguito quindi il comando npm install come specificato nella documentazione di Laravel e questo ha funzionato correttamente.gulp-notify: [Errore nel notificatore] Errore nel plugin 'gulp-notify' non trovato: notify-send

Tuttavia, quando ora faccio funzionare l'ordine gulp ottengo il seguente messaggio:

[email protected]:/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 

chiunque altro ha incontrato l'errore?

gulp-notify: [Error in notifier] Error in plugin 'gulp-notify' 
not found: notify-send 

Grazie

risposta

34

ho trovato una soluzione a questo problema me stesso. Ho eseguito i seguenti comandi sulla mia casella di Ubuntu:

sudo apt-get update 
sudo apt-get install libnotify-bin 

Dopo di che, ora posso correre gulp e ottenere il seguente:

[email protected]:/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 

Tutto sembra buono. Spero che sarà utile ad altri utenti SO.

7

Per CentOS/Fedora/RedHat 7 utenti:

sudo yum install libnotify 

(senza "-bin")

2

ho trovato i seguenti comandi, utile:

npm install notify-send 

Il problema è andato.

+0

Risolto il mio problema per l'ambiente Windows! – Cham

+0

Woot, ha funzionato benissimo anche per me! – takanuva15