It will show you something like the following imageįrom the list, you can choose the version you want to use with the command nvm use Īnd, if you want to use a version as default, you can enter nvm alias default To list all the version you have installed, enter: nvm ls So, if you want to install latest stable version of NodeJS, the v4.1.2, the command will look like this: nvm install v4.1.2Īnd that’s it! That’s how easy you can install a NodeJS version in your development machine. Once you have identified the version you want, you can install it with the command: nvm install NODEJS_VERSION How to use it NVMįirst, list all the available version of NodeJS (or IO.js) with the command: nvm ls-remote ~/.nvm/nvm.sh Note: There are solutions for windows as well (like this or this), but I will cover *nix environments only in this post. If you want to make it work on the same Terminal window, enter the following line. profile files to ensure NVM is activate when you open a new Terminal window: ] & source "~ /.nvm/nvm.sh" nvm directory in your user’s home directory, and add he following line to the. Install NVM is very simple in *nix environtments: open the Terminal app, and execute the following command: curl -o- | bash In this post I’m going to show you how to install multiple version of NodeJS (or its fork, IO.js) in your local machine. Manage several version of a programming language.Īlthough, with tools like Vagrant and Docker you can have isolated development environments for each of your projects, sometimes it is really useful to have these package managers in your machine for quick testing purposes.Have programming languages isolated from the system directories.If you read my previous post on how to install multiple versions of Ruby on your machine, you might have realized some things that I like on my development machine:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |