How to update CLI from ionic 1 to ionic 2

Do i need to clear cache npm first?