Cocos not recognized as internal command, after install

Why is your path Cocos2D-X, that is not how it should be. Our folder is named Cocos2d-x note the lowercase x. So unless you renamed it, your folder names don’t match what I know them to be.

But, it seems your path is valid from what you put in the terminal window.

The error suggests that you did not accept the license agreement.