Created
October 5, 2022 17:10
-
-
Save christiannelson/6cc8c36d235f861c8a6dbc0434bc509e to your computer and use it in GitHub Desktop.
This file contains 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
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