npm config get prefix Then run this : sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} Now run the installation commands
npm config get prefix Then run this : sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} Now run the installation commands