Change the permission to npm's default directory

npm
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}