osx - -bash: phonegap: command not found (Mac OS) -


i installed phonegap , cordova using npm on macbook (mac os x mountain lion) using these commands on command line.

sudo npm install -g cordova sudo npm install -g phonegap 

both phonegap , cordova seemed install fine, when tried:

mymac:~ user$ cordova mymac:~ user$ phonegap 

i got messages:

-bash: cordova: command not found -bash: phonegap: command not found 

both installed, why command not work.

i know old question, think answer helpful.

i got same problem , solve creating symlink:

cd /usr/local/bin/ sudo ln -s /usr/local/cellar/node/6.0.0/bin/phonegap phonegap sudo ln -s /usr/local/cellar/node/6.0.0/bin/cordova cordova 

remember change path /usr/local/cellar/node/6.0.0/bin/ yours installation folder.

[]s


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -