Npm -v prompt bin/npm :permission denied under linux

  node.js, question

Npm -v prompt bin/npm :permission denied under linux

If the authority is not enough, ask you for operation and maintenance. If you have sudo authority:

sudo chmod 777 /usr/bin/npm

Such as, 777 followed by your npm installation location, can’t find the location of the npm with the following command

sudo find / -name npm

You can also string them up with pipe symbols and watch yourself. . .