Skip to content

Instantly share code, notes, and snippets.

@jhannah
Created August 28, 2023 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhannah/bd2a302291da651d1641c69e2fa09b62 to your computer and use it in GitHub Desktop.
Save jhannah/bd2a302291da651d1641c69e2fa09b62 to your computer and use it in GitHub Desktop.
nvm notes
➜ Jays-2017-MacBook-Pro:argos_ghy git:(production-pipeline) ✗ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15916 100 15916 0 0 76544 0 --:--:-- --:--:-- --:--:-- 80383
=> Downloading nvm from git to '/Users/jhannah/.nvm'
=> Cloning into '/Users/jhannah/.nvm'...
remote: Enumerating objects: 360, done.
remote: Counting objects: 100% (360/360), done.
remote: Compressing objects: 100% (306/306), done.
remote: Total 360 (delta 41), reused 160 (delta 28), pack-reused 0
Receiving objects: 100% (360/360), 220.26 KiB | 1.98 MiB/s, done.
Resolving deltas: 100% (41/41), done.
* (HEAD detached at FETCH_HEAD)
master
=> Compressing and cleaning up git repository
=> Appending nvm source string to /Users/jhannah/.zshrc
=> Appending bash_completion source string to /Users/jhannah/.zshrc
=> You currently have modules installed globally with `npm`. These will no
=> longer be linked to the active version of Node when you install a new node
=> with `nvm`; and they may (depending on how you construct your `$PATH`)
=> override the binaries of modules installed with `nvm`:
/usr/local/lib
├── nx@16.6.0
├── ts-node@10.9.1
└── typescript@5.1.6
=> If you wish to uninstall them at a later point (or re-install them under your
=> `nvm` Nodes), you can remove them from the system Node as follows:
$ nvm use system
$ npm uninstall -g a_module
=> 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment