I have a vagrant box (debian) with a Magento2 installation for development. Everything works nice, but changing css/less is very very slow (because everytime I have to remove pub/frontend and var/view_processing/*), developing a theme is not nice in Magento2... :(
That's why I have installed NPM + Grunt on my local Mac. But when I run grunt exec:theme I always get an error:
[Zend_Db_Adapter_Exception] SQLSTATE[HY000]  No such file or directory
I understand that my local Grunt cannot connection my database (because I have a vagrant box), but how can I work with Grunt on my LOCAL environment (ex. PHP Storm), without database connection errors?