![]() Add root to the nvm group # usermod -aG nvm root.Create a group called "nvm", # groupadd nvm.I've done this on a debian 8 machine, as the root user.This is the solution I came up with: (shout out to for the initial version) Some users should be able to install newer versions of node.Every user should be able to select a installed version of node (or use $ nvm exec).NVM should just work in non-interactive sessions.For a time I worked around this by sourcing the nvm script everywhere but that seems to be a somewhat unmaintainable solution. I needed a global install of NVM because I have some node based cron jobs and a few legacy applications that are rather picky about which version of node they are able to work on.
0 Comments
Leave a Reply. |