I'm trying to use Grunt on a project that I'm working on with someone else. My colleague installed Node, NPM, Grunt-CLI and created a Grunt task and uploaded the entire working directory to Github. When he runs the Grunt task it works fine.
I have Yosemite 10.10.4. I've pulled down a clone of the working directory from Github. But when I try and run the Grunt task I get >> /bin/sh: mysqldump: command not found
Database dump failed!
I have done the following:
- Installed Node.js
- Installed the command-line version of Grunt
sudo npm install -g grunt-cli
- Added the path from the Grunt installer to my $PATH
export PATH=/usr/local/lib/node_modules/grunt-cli/bin:$PATH
thenecho $PATH
which results in/usr/local/lib/node_modules/grunt-cli/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin
- Ensured grunt is installed
grunt --version
results ingrunt-cli v0.1.13 grunt v0.4.5
- Installed Grunt in to the working directory
cd /path/to/project/root/
followed bysudo npm install
- Checked and ensured package.json and Gruntfile.js are in the root of the working directory (also of note that a node_modules folder has been included in the root of the working directory with my colleagues commit).
Is anyone able to help me identify the problem?
I've been following: