Skip to content

Latest commit

 

History

History
88 lines (58 loc) · 1.68 KB

File metadata and controls

88 lines (58 loc) · 1.68 KB

ASDF

ASDF is installed for installing and switching NodeJS and Python environment versions.

Setup NodeJS

Install the Node plugin

asdf plugin-add nodejs

List the all Node versions (or find the LTS versions online)

asdf list all nodejs

Define a global Node version. e.g. 22.2.0 for new features...

asdf install nodejs 22.2.0
asdf global nodejs 22.2.0

When 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.0

Note

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.4

Setup PNPM

ASDF 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.0

Setup Python

Install the Python plugin

asdf plugin-add python

List all Python 3 versions to find latest

asdf list all python 3

install any version greater than 3.9 for compatibility, e.g. 3.12.3

asdf install python 3.12.3

Set the global version if you need to for system utils and ad-hoc scripts outside projects:

asdf global python 3.12.3

Continue to AWSSSO