You might nest these dependencies, node is used to install bower and grunt (I didn't use it for php, but that's a different story) and gem (ruby) is used to install sass and compass.