Skip to content

Instantly share code, notes, and snippets.

@christiannelson
Created October 5, 2022 17:10
Show Gist options
  • Save christiannelson/6cc8c36d235f861c8a6dbc0434bc509e to your computer and use it in GitHub Desktop.
Save christiannelson/6cc8c36d235f861c8a6dbc0434bc509e to your computer and use it in GitHub Desktop.
Uninstall any existing node and nodenv brew packages
$ brew uninstall node nodenv nodenv-default-packages node-build-update-defs
Move any existing nodenv config out of the way
$ mv ~/.nodenv ~/.nodenv.orig
Start a new shell
Clone the nodenv repo in a scratch directory
$ cd Code/scratch
$ git clone https://github.com/nodenv/nodenv.git
Add nodenv to your path
$ export PATH=$HOME/Code/scratch/nodenv/bin:$PATH
Initialize nodenv in your current shell (this assumes you are using zsh)
$ eval "$(nodenv init -)"
Install the node-build plugin
$ git clone https://github.com/nodenv/node-build.git "$(nodenv root)"/plugins/node-build
Install node 16
$ nodenv install 16.17.0
You can now run the benchmark:
$ /usr/bin/time nodenv versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment