I was using node 0.10.35 and grunt command was working fine. Now after upgrading to 0.12.3 grunt command has stopped working.
OS: Mac OSX 10.10.1 node: 0.12.3 npm: 2.9.1 grunt: 0.4.5
I thought there may be problem in node installation, so I clean installed it 3-4 times
I tried installing with -
- node-v0.12.3.pkg
- Node Version Manager (nvm)
Many of solutions to such problems have suggested to use
npm install -g grunt-cli
and then use npm install
to install local node-modules.
I followed that procedure but I getting the same error.
/usr/local/bin
? Try the following:ls -als /usr/local/bin/grunt
. This should point to the binary installed bygrunt-cli
. – nwinkler/usr/local/bin
folder. It is placed in/Users/<Username>/.nvm/versions/node/v0.12.3/bin
folder. Grunt Execuble was inside/Users/<Username>/.node/bin
folder. – Neha/Users/<Username>/.node/bin
in PATH variable. After that grunt command worked. – Neha