0

I have to acknowledge being an old timer U*ix system administrator. Software to be used by everybody had two possible locations:

/usr/bin /usr/local/bin

The best example is gcc and family.

Now I find myself in a new world. My node installation lives in:

/home/david/.nvm/versions/node/v14.7.0/bin/node

So I added the corresponding directory to my path.

How/where should the node package be installed? It would be done and owned by root, of course.

4
  • Do you actually have multiple human beings wanting to use node on the same computer? That's pretty uncommon these days since computers are so cheap everyone has one (or several). Commented Aug 17, 2020 at 22:42
  • 1
    Does this answer your question? How do you install Node.JS on CentOS? Commented Aug 17, 2020 at 22:55
  • Michael: My goal is to run a server application based on node.js. More specifically, this one: github.com/potree/potree. The users are actually two developers. Commented Aug 17, 2020 at 22:57
  • Yes, Christopher, it seems that my question is answered there, in that 9 year old post. The installation takes over one hour, so I am not 100% sure. Keeping my finger crossed. Commented Aug 17, 2020 at 22:59

1 Answer 1

0

You want to install NodeJS to /usr/bin. Installing an application to a user's home directory and giving others access to that directory is not considered best practice, and should only ever be done for very short-term requirements. You'd also need to grant the other users read access to that directory, which has the potential to cause issues.

1

Not the answer you're looking for? Browse other questions tagged .