Unable to use command line on Mac OS X

Solution 1:

You've probably overwritten your PATH. Check this file* for statements with export PATH:

/Users/your-username/.bash_profile

If Sencha has made any changes to that file, note that this is the correct syntax to be used to add a folder to your PATH:

export PATH=/some/other/path:$PATH

If you forgot the :$PATH, you'll overwrite it every time you start the Terminal. Therefore, OS X won't be able to find your commands. So, the fix would be to remove offending export lines completely, or fix them to use the right syntax.

export PATH=/Users/Oskar/Sencha:$PATH

* The file is hidden by default. If you are unable to see it from Finder, and your PATH is still broken, run the following command: /usr/bin/open ~/.bash_profile to open it in a text editor.