Created
December 14, 2022 10:02
-
-
Save RhysStansfield/d188d74f00a21e68052b02e4e94e850b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r@rs-MacBook-Pro ~ | |
$: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 15916 100 15916 0 0 251k 0 --:--:-- --:--:-- --:--:-- 282k | |
=> Downloading nvm from git to '/Users/r/.nvm' | |
=> Cloning into '/Users/r/.nvm'... | |
remote: Enumerating objects: 356, done. | |
remote: Counting objects: 100% (356/356), done. | |
remote: Compressing objects: 100% (303/303), done. | |
remote: Total 356 (delta 39), reused 164 (delta 27), pack-reused 0 | |
Receiving objects: 100% (356/356), 222.14 KiB | 3.53 MiB/s, done. | |
Resolving deltas: 100% (39/39), done. | |
* (HEAD detached at FETCH_HEAD) | |
master | |
=> Compressing and cleaning up git repository | |
=> nvm source string already in /Users/r/.bashrc | |
=> Appending bash_completion source string to /Users/r/.bashrc | |
=> Close and reopen your terminal to start using nvm or run the following to use it now: | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
r@rs-MacBook-Pro ~ | |
$: . ~/.bashrc | |
r@rs-MacBook-Pro ~ | |
$: nvm | |
Node Version Manager (v0.39.2) | |
Note: <version> refers to any version-like string nvm understands. This includes: | |
- full or partial version numbers, starting with an optional "v" (0.10, v0.1.2, v1) | |
- default (built-in) aliases: node, stable, unstable, iojs, system | |
- custom aliases you define with `nvm alias foo` | |
Any options that produce colorized output should respect the `--no-colors` option. | |
Usage: | |
nvm --help Show this message | |
--no-colors Suppress colored output | |
nvm --version Print out the installed version of nvm | |
nvm install [<version>] Download and install a <version>. Uses .nvmrc if available and version is omitted. | |
The following optional arguments, if provided, must appear directly after `nvm install`: | |
-s Skip binary download, install from source only. | |
-b Skip source download, install from binary only. | |
--reinstall-packages-from=<version> When installing, reinstall packages installed in <node|iojs|node version number> | |
<__SNIP blah blah blah lots of output___> | |
r@rs-MacBook-Pro ~ | |
$: nvm install node | |
Downloading and installing node v19.2.0... | |
Downloading https://nodejs.org/dist/v19.2.0/node-v19.2.0-darwin-x64.tar.xz... | |
####################################################################################################################################################################################################################################################### 100.0% | |
Computing checksum with shasum -a 256 | |
Checksums matched! | |
Now using node v19.2.0 (npm v8.19.3) | |
Creating default alias: default -> node (-> v19.2.0) | |
r@rs-MacBook-Pro ~ | |
$: node --version | |
v19.2.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment