Goto the /opt directory and create a directory called nvm.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. nvm use 0.10.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. nvm/current ?) Without doing anything myself and only following the tutorial, node -version and nodejs -version never uses the version I specify with. I know how to make my system use the nvm current (symlink from /usr/local/bin/node to. Its supposed to go in but idk if that's all I have to do. I suppose I could just clone a version of node into the folder In addition the bin folder is also empty. When I install nvm using the curl one liner they give you, and then use nvm install 0.10.32 There are 2 node installations on my system already. I installed following the tutorial here and I've also tried the one here. I'm trying to install nvm on Ubuntu 14.04 but it doesn't seem to use the version I specify.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |