Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use asdf instead of nvm for nodejs version management + others #23

Open
3 tasks
gustav-olsen-groupone opened this issue Nov 5, 2024 · 1 comment
Open
3 tasks

Comments

@gustav-olsen-groupone
Copy link
Collaborator

gustav-olsen-groupone commented Nov 5, 2024

https://github.com/vtm9/dotfiles/blob/ddca4753d6b64c2eda2ba45030d3596a1012ac00/Makefile#L18-L44

https://asdf-vm.com/manage/plugins.html

  • Load the .asdf/ module if it exists
. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"
  • Install the nodejs plugin
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git

Bonus points

Other relevant plugins:

asdf plugin-add helm https://github.com/Antiarchitect/asdf-helm.git
asdf plugin-add golang https://github.com/asdf-community/asdf-golang
asdf plugin-add yq https://github.com/sudermanjr/asdf-yq.git
asdf plugin-add jq https://github.com/lsanwick/asdf-jq.git
asdf plugin-add kubectl https://github.com/asdf-community/asdf-kubectl.git
asdf plugin add awscli https://github.com/MetricMike/asdf-awscli.git

Init and install files

We need to have a file that installs the plugins. We should test if installing a plugin is idempotent, and if it's safe to rerun - if it's not we need to have separate install and init files.

We also need to have a file that set's up default versions for the various tools. This would be where you went to "upgrade" a version of a tool, and then reapply the init file.

asdf install nodejs 14.10.0
asdf global nodejs 14.10.0
@gustavnikolaj
Copy link
Owner

homebrew could also be used instead of asdf for the non language runtimes.

@gustavnikolaj gustavnikolaj mentioned this issue Jan 24, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants