node.js - Installing nvm on Ubuntu 14.04 -


i'm trying install nvm on ubuntu 14.04 doesn't seem use version specify. installed following tutorial here https://github.com/creationix/nvm , i've tried 1 here https://www.digitalocean.com/community/tutorials/how-to-install-node-js-with-nvm-node-version-manager-on-a-vps.

there 2 node installations on system already.

which node # => /usr/local/bin/node node --version # => v0.11.13-pre nodejs # => /usr/bin/nodejs nodejs --version # => v0.10.26 

when install nvm using curl 1 liner give you, , use

nvm install 0.10.32 

it creates empty folder inside .nvm/v0.10.32 , .nvm/current symlinks it. in addition bin folder empty. problem occurs if install other versions of node. suppose clone version of node folder supposed go in idk if that's have do. in addition, i'm not sure know how make system use nvm current (symlink /usr/local/bin/node .nvm/current ?) without doing myself , following tutorial, node --version , nodejs --version never uses version specify with.

nvm use 0.10.32 

here personal guide how install nvm (node version manager).

reference: https://github.com/creationix/nvm

1.) install nvm (note: there might new versions in website.)

curl https://raw.githubusercontent.com/creationix/nvm/v0.24.0/install.sh | bash

2.) close current terminal , use new terminal try nvm again.

3.) install current node.js version using:
nvm install node_version
ex: nvm install 0.10.32

4.) check nodejs version--> nvm list

5.) setup default node version in nvm everytime restart system loads default node version:

to help: nvm -h list of install node.js versions: nvm ls set default alias: nvm alias default node_version 

6.) uninstall specific node.js version:
nvm uninstall node_version


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -