ASDF is installed for installing and switching NodeJS and Python environment versions.
Install the Node plugin
asdf plugin-add nodejsList the all Node versions (or find the LTS versions online)
asdf list all nodejsDefine a global Node version. e.g. 22.2.0 for new features...
asdf install nodejs 22.2.0
asdf global nodejs 22.2.0When you move into project directories, you may need to install the local version.
For example in a project path there might be a .tool-versions with nodejs 20.9.0
To make that version available, install it with:
asdf install nodejs 20.9.0Note
For MAC M1, if you want to install Node version <16.x run with arch > -x86_64
arch -x86_64 asdf install nodejs 14.15.4ASDF can also manage your PNPM version per project.
This is an optional step as opposed to using a global PNPM installed via Homebrew or Node's own Corepack (which is still experimental).
e.g. for setting up PNPM version 9.12.0 in a given project...
asdf plugin-add pnpm
asdf install pnpm 9.12.0
asdf local pnpm 9.12.0Install the Python plugin
asdf plugin-add pythonList all Python 3 versions to find latest
asdf list all python 3install any version greater than 3.9 for compatibility, e.g. 3.12.3
asdf install python 3.12.3Set the global version if you need to for system utils and ad-hoc scripts outside projects:
asdf global python 3.12.3Continue to AWSSSO