Skip to content
Myr

[readme] Add quick intro to `nvm`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Allow newbies to get a quick understanding of how `nvm` works right from the start.

authored by Alister Norris · committed by Jordan Harband · parent 7bbc573 · Browse files · 1 file+24 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+24 added−0 removed

  • other:+24 added−0 removed

1 file+24 added−0 removed

modified:README.md+24 added
3 unmodified lines
4<!-- START doctoc generated TOC please keep comment here to allow auto update -->5<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->6## Table of Contents78- [Intro](#intro)9- [About](#about)10- [Installing and Updating](#installing-and-updating)11 - [Install & Update Script](#install--update-script)12 - [Additional Notes](#additional-notes)
42 unmodified lines
55- [Copyright notice](#copyright-notice)5657<!-- END doctoc generated TOC please keep comment here to allow auto update -->5859## Intro6061`nvm` allows you to quickly install and use different versions of node via the command line.6263**Example:**64```sh65$ nvm use 1666Now using node v16.9.1 (npm v7.21.1)67$ node -v68v16.9.169$ nvm use 1470Now using node v14.18.0 (npm v6.14.15)71$ node -v72v14.18.073$ nvm install 1274Now using node v12.22.6 (npm v6.14.5)75$ node -v76v12.22.677```7879Simple as that!808182## About83nvm is a version manager for [node.js](https://nodejs.org/en/), designed to be installed per-user, and invoked per-shell. `nvm` works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on these platforms: unix, macOS, and windows WSL.8485<a id="installation-and-update"></a>
881 unmodified lines