cordova/Ionic installation should be locally or globally?

Hi, I am new to ionic so i want to ask which method is good for ionic Installation Globally or Locally, what are the pros & cons of these two.