sous-chefs/nodejs

Is node installed as root

Closed this issue · 4 comments

I'd rather install node under a user instead of root. Im looking at the code but I can't seem to see if the cookbook is installing node as a root user. If so I can create a pull request to install node/npm as a user.

Yes node or iojs is installed as root.... like any other program on a unix system. Up to you to run it as any user you want (hopefully not root ;) )

I'm an idiot. The life of a developer trying to do sys admin stuff. I was trying to use nvm but I guess just installing node would be the right way of doing this. How can I run node as a user? When I try to install a npm package globally it wants it in root. What am I doing wrong? If its in the documentation just let me know because I can't seem to find it. If I have to run a gulp task would I have to run it with sudo? Thanks again for your help.

I figured it out.