Forums

How to use nmp?

I wanted to install bower via npm. But it said that it needed root permissions, how to use npm then?

Tried Command--> npm install -g bower

I think you need to tell it to install in a subdirectory of your own home directory, and to change your PATH to search wherever you tell it to install. More information in this Stack Overflow answer.

This seemed to work for me:

http://www.competa.com/blog/2014/12/how-to-run-npm-without-sudo/