https://github.com/aniketpatidar/asdf
Setting Up asdf to Manage Node.js and Ruby on Ubuntu
https://github.com/aniketpatidar/asdf
asdf asdf-plugin nodejs ruby ubuntu
Last synced: about 1 month ago
JSON representation
Setting Up asdf to Manage Node.js and Ruby on Ubuntu
- Host: GitHub
- URL: https://github.com/aniketpatidar/asdf
- Owner: aniketpatidar
- Created: 2024-06-25T06:31:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-25T06:33:25.000Z (about 2 years ago)
- Last Synced: 2025-01-22T16:32:16.788Z (over 1 year ago)
- Topics: asdf, asdf-plugin, nodejs, ruby, ubuntu
- Homepage: https://aniketpatidar.hashnode.dev/setting-up-asdf-to-manage-nodejs-and-ruby-on-ubuntu
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# asdf
---
### Installation Instructions
#### Install prerequisites
```sh
sudo apt install curl git
```
#### Clone the asdf repository
```sh
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
```
#### Update your shell configuration
Add the following lines to your `~/.bashrc`:
```sh
. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"
```
Then, reload your `~/.bashrc`:
```sh
source ~/.bashrc
```
### Install Node.js
```sh
sudo apt-get install dirmngr gpg curl gawk
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf install nodejs latest
```
### Install Ruby
```sh
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
```
#### Verify the installation
Correct output from `type -a ruby` (asdf shim is first in the list):
```sh
ruby is /Users/someone/.asdf/shims/ruby
ruby is /usr/bin/ruby
```
Incorrect output from `type -a ruby`:
```sh
ruby is /usr/bin/ruby
```
---