ASDF
Version manager with offical support for Node, Elixir, Erlang, and Ruby. Community plugins for more.
brew install asdfInstall ASDF
https://asdf-vm.com/guide/getting-started.html#core-installation-complete
Install New Versions Plugins
asdf list all elixir #list all versions
asdf list all erlang
asdf install nodejs lts-iron #installList installed Versions
asdf list <name> #list all installed versionsChange Version
asdf global nodejs lts-iron #set
asdf local nodejs lts-ironAdd New Plugin
asdf plugin add python
asdf install python latest
asdf global python latest
#OR
asdf install python 3.7.9
asdf global python 3.7.9See Installed Plugins
asdf plugin listbrew upgrade asdf
asdf exec python #to run bash scripts in the asdf envDebugging
ERROR:
Please install a version by running one of the following:
asdf install nodejs 18.19.0
or add one of the following versions in your config file at /Users/jfuentes/.tool-versions
nodejs 16.14.0SOLUTION:
Try
asdf reshim nodejsTry
asdf current nodejsto see where its getting the version fromAfter reshimming/installing/changing, may need to refresh terminal
Perhaps the tool you are trying to run is installed under the wrong version,
npm install -g @aws-amplify/cliin the current node version fixed it for me ornpm install -g yarn
Last updated