Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

WayneHarris's avatar

Any thoughts on the following error?

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

All else seems to run ok, but not getting the Mac notifications.

xingfucoder's avatar

@Keevitaja, I get the same errors. I uninstalled gulp, reinstalled it and run all commands as you said.

Someone get the same errors with gulp installed?

Thanks in advanced.

zcuric's avatar

@codeatbusiness I followed the instructions on the article I linked above and it worked for me. Just make VirtualBox.exe and VBoxManage.exe (should be in Program Files\Oracle\VirtualBox) to run as administrator (right click, Properties > Compatibility) and run your cmder as administrator too, ssh in homestead and run npm install in laravel folder.

xingfucoder's avatar

Same errors... all those programs are running as an administrator. Elixir becomes exorcist :( hahhahaha.

xingfucoder's avatar

Right now, I have installed in Windows 8.1:

  • VirtualBox
  • Vagrant
  • Laravel Homestead

I create-project with Laravel 5.0 + Elixir.

Where I need to run the npm install in Local Machine or via SSH?

I connected via SSH and run in the HOMESTEAD machine the npm install command.

I have not installed NodeJS in my machine, only was installed in virtual machine. Is needed to install NodeJS in Windows local machine?

Shovels's avatar

I have always gone for Node installed locally - I figured that running a processor intensive task through a VM wasn't the fastest approach (I could well be wrong :) .

I've got a felling that I just installed NodeJS using the installer, then added the Node installation directory to the Windows PATH variable.

NPM is then available on the command prompt globally.

theUnforgiven's avatar

After watching the video for this, it's awesome, Laravel is becoming more and more awesomer! (if that's even a word)

xingfucoder's avatar

I installed NodeJS in my local machine, after it I install gulp as you commented here, then using the nodejs CLI and then I can install the gulp packages in the root folder. But I have a question:

Is not possible to run the npm install command in the Homestead VM?

If I run this command there it gives me all those errors.

Then, when I run gulp command, after create the less/bootstrap.less file, I got the following message:

GulpErrors

The css file is create but I get the gulp-notify error message.

If someone get the same errors and can comment here, great!

Thanks

keevitaja's avatar

There is a gulp-notify npm package... no clue if installing it will resolve this issue.

xingfucoder's avatar

Many thanks @keevitaja, do you know why cannot run in the Vagrant Homestead machine the same npm install command? It gives me many errors, and if I run in my local machine it works fine.

keevitaja's avatar

@codeatbusiness i do not know. There seems to be something wrong with your VM and it's packages/dependencies.

Check your home directory in VM for tmp folder and see if it belongs to you or root... If it is owned by root, delete tmp folder. It will be auto created on demand.

npm install -g should be run as root (using sudo) and npm install --save-dev as regular user

xingfucoder's avatar

Hi @keevitaja, In my VM I see the tmp directory in the root folder, where I have the bin, boot, build, dev, etc. ... and another folders. In the home directory I only have ubuntu and vagrant folders.

The root directory:

RootDirectory

The home directory:

HomeDirectory

Is the root tmp the folder that I need to delete? It is owned by root.

Thanks in advanced.

keevitaja's avatar

NO! cd ~/tmp (with tilde !!!) and check ls -ld for the ownership.

Do not delete /tmp !!!

But perhaps there is something wrong with the L5. See if gulp works with out it as a stand alone. Just create a new folder and enter npm install --save-dev gulp

xingfucoder's avatar

I haven't that folder. Only have the tmp root folder.

Trying the last instructions about installing stand-alone I get the same errors.

keevitaja's avatar

This should not happen... But i do not know how to fix this. If it was on my desktop, i would start to remove everything (including npm with it's modules) and then reinstall everything.

Sorry i can't offer more help.

jason's avatar

@codeatbusiness -- I am running a windows 8 host machine with linux on virtual box as the guest. I ran into some issues when I started bringing node.js and npm into my workflow.

If you get an error when you run this command from your VM:

ln -fs out/Release/node node
ln: failed to create symbolic link `node': Read-only file system

Then this link might help solve your issue with npm in a VM running on a windows host:

http://ahtik.com/blog/fixing-your-virtualbox-shared-folder-symlink-error/

I followed it to the letter and it got me up and running with npm on the guest and windows as the host.

fenos's avatar

There is any way to adapt others gulp plugins to elixir, example browserify?

1 like
xingfucoder's avatar

Hi @fenos,

Maybe you could see the following folder into your project:

vendor\laravel\elixir\ingredients

This folder is required by Elixir.js:

   var Elixir = function(recipe) {
    recipe(Elixir.config);
    require('require-dir')('./ingredients');
    };

 Elixir.config = require('./Config');

 module.exports = Elixir;

and use with your Gulpfile.js

var elixir = require('./vendor/laravel/elixir/Elixir');

As you can see in the video you can make use of the elixir() object, maybe you could extends to use browserify there.

However I would wait for the documentation of Laravel Elixir.

laloutre's avatar

I didn't catch the way to install Elixir on an existing Laravel 5 project: is there something to add in composer.json file, or a simple composer update will do?

BenSmith's avatar

This is very cool, I got it working with my sass files within minutes however I'm having difficulties with my javascript files. I have my scripts in "resources/assets/scripts" with 2 subdirectories, one for vendor js (jquery, bootstrap, etc.) and another subdirectory for my own js.

In my previous gulp setup I had an array of my vendor js files in the order in which they needed to be included (jquery first etc.), and had a dedicated task to uglify and concatenate them to a vendor.js file. I then watched the javascript subdirectory with my own components and on a change I would uglify, concat and then merge them with the vendor file into a new main.js file.

I'm hoping with elixir this multi stepped approached is not necessary. Really all I need is to be able to specify an order that some vendor files should be loaded and then everything else can be arranged however.

I've played around with including .scripts() in my gulpfile but I wasn't getting anywhere and when the options I provided didn't cause a type error, gulp would run but the scripts task was never mentioned. Any help would be appreciated.

jason's avatar

@laloutre -- Not sure on the best practices for getting Elixir into an existing Laravel 5 project, I went ahead and started with a fresh Laravel 5 install which included all the necessary files.

That being said, you can try adding laravel/elixir to your composer.json file require section and then run composer update:

"laravel/elixir": "~1.0"

This won't add a package.json or Gulpfile.js so you'll need to manually add these files to the root of your project

https://github.com/laravel/laravel/blob/develop/package.json
https://github.com/laravel/laravel/blob/develop/Gulpfile.js

then run npm install.

One thing to note, I had some issues with the gulp-sass in the out-of-the-box package.json file. I hacked the code a bit to remove sass entirely as a dependency to get around it (I don't use sass).

You can try replacing gulp-sass with gulp-ruby-sass though (I believe I remember seeing a laracast about gulp-sass not working very well and @JeffreyWay addressed this by using gulp-ruby-sass instead). I'm not sure if that'll work, haven't tried it (since I don't use sass).

rocketjump's avatar

Does gulp notify run out of the box? It says task 'notify' is not in your gulpfile, but in Jeffrey's video you can see that notify task is not in his gulpfile as well. What would be the best way to configure it with elixir?

jason's avatar

@rocketjump -- I've been seeing gulp notify run out of the box. The notifications are going to my virtual machine though. I see the notifications because I'm currently running the VM in desktop mode. If you're running a VM via vagrant or headless, you probably wouldn't see any notifications.

Guest VM is a linux install, host is windows 8.1 where I use phpstorm.

1 like
rocketjump's avatar

Thanks Jason for you answer. I forgot to mention I am running it in osx mamp pro. No Vagrant or other stuff. Should I be able to see it?

1 like
jason's avatar

@rocketjump -- not sure since I'm not familiar with that setup but I imagine you should be able to see notifications. Hopefully someone with more experience using osx mamp has an answer for you! :)

Also to note, official documentation isn't out yet and elixir was just announced yesterday (I think?) so my guess is that this sort of stuff will eventually get worked out.

Please or to participate in this conversation.