Removed the before install and added grunt-cli in as a dev dependency. Should work better.