Q:

Problems with npm, node-gyp and gulp on MAC OS X Yosemite 10.10.5

I've problems with installing npm, node-gyp and gulp on my MAC.  I need this for a Laravel project.  I did my research throughout the internet but I could not find a solution which was working for me.  It seems like something goes wrong with the paths. 
I've tried:

installing node/npm through the website nodejs.org and this seems to install fine.  After trying with node -v and npm -v everything was accessible globally. 
installing npm via homebrew.  Works also but doesn't install all the dependencies. 

When it comes to install gulp and node-gyp everything goes wrong.  I tried with npm install -g gulpbut I could not access the application file nor globally or through the install path. 
If you need more info let me know! 
Thank you so much for your help! 
UPDATE
I've followed this instructions here.  Everything works fine until I get to the point where I have to install npm manually through curl -L http://npmjs.org/install.sh | sh.  I get an error message that the SSL certificate is not verificated.  Trying with -kgives me an error that the file could not be found.  I've also tried to download the shell script and run it manually from the terminal.  In that case it seems to do something but again it causes an issue with the SSL certificates. 

A:

I finally found the solution.  Installing via homebrew seems to make the least bit of problems.  It does install everything well but as stated in the link from my original post, it does mess up the paths.  In case someone needs additional packages (node-gyp, gulp), it will have to be installed via sudo npm -g yourpackagehere.