When should I use sudo npm install and when to use npm install? What are the pros and cons (if any)?
StackOverflow and Nitin have pointed out that its a possible duplicate of the npm install vs sudo npm install -g, but if you see the questions is emphasising on the usage of -g but I'm looking for details about usage of npm install with and without sudo.
I hope the question is valid. Please correct me if its not.