Nodejs on managed server

65 views
Skip to first unread message

Simon Auer

unread,
Apr 20, 2015, 11:10:01 AM4/20/15
to nod...@googlegroups.com
Hey guys,

I have a managed server that I need node on. I don't have root access and need to ask my provider to install software.

I use node mainly for isomorphic ember, angular and reactjs applications.

What is the best way to install node in that situation to be able to use it in multiple projects and without having to use sudo?
Should I use nvm (to make sure that the applications will work in the future)?
Can i use nvm to install global packages without sudo? (i found a lot of tutorials on how to install npm without sudo, but not for nvm)

What would you recommend or can you post a link to installation/configuration instructions that I could pass to my provider?

I just want to make she he installs it right, because he doesn't have much experience with node.


best regards
  Simon

Daniel Rinehart

unread,
Apr 20, 2015, 9:47:28 PM4/20/15
to nodejs
Yes, nvm would handle this case well. All node versions and global npm package installs will be scoped to the user and you'll just need to make sure the nvm file is sourced to have it use those versions. If you have shell access no sudo privileges would be needed. 

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/6b79e763-cc2b-4d26-9a4f-3419299099df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

zladuric

unread,
Apr 21, 2015, 8:04:30 AM4/21/15
to nod...@googlegroups.com
nvm can handle user-specific packages and globals and versions. That would but be a problem.

What also well not be a problem, but can produce a neat pile of work is proxy stuff. Can you have the provider proxy paths on apache or nginx to your port or ports? If it's just one port, then there will have to be some port sharing or multiplexing or some such.

Simon Auer

unread,
Apr 22, 2015, 10:49:59 PM4/22/15
to nod...@googlegroups.com
Hi guys,

thank you for your answers. So is there anything I should tell him, that he must take care of while installing nvm?
(certain configuration or way to install nvm? like node when you want to use it without sudo?)

For the proxying:
i actually never had the problem of proxying before, so I don'T really know exactly how I would accomplish that, but I have a few IP adresses and my provider uses plesk 12 on the server. So I can change nginx and apache configurations. Is there anything else I have to consider or do you know if it works with those?

thanks
Reply all
Reply to author
Forward
0 new messages