Added required sudo to npm -g ... command