nevermind, I have solved the problem. It had to do with Synced folders problem within npm and vagrant. I have added the following line to my vagrant file and it works :)
type: “rsync”, rsync__args: [“ — verbose”, “ — archive”, “ — delete”, “-z”]
It was added at the end of the line which defines the synced folder:
config.vm.synced_folder “.”, “/var/www”, :mount_options => [“dmode=777”, “fmode=666”]
There are multiple solutions, one of them is running vagrant with sudo rights from your host system (if you use Linux) I use Linux. But then you have to deal with another problem and it’s about the user ID.
here is a SO question and solution: