Why my cocos2d-js project run after a time, the cocos commands can't use, need to reinstall setup.py ?

Why my cocos2d-js project run after a time, the cocos commands can’t use, need to reinstall setup.py ?