Agregar npm a $ ruta ubuntu
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
Smoggy Skipper
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}