tutorials:3
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| tutorials:3 [2023/04/03 12:31] – created tcmal | tutorials:3 [2023/07/29 11:09] (current) – removed tcmal | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== 3. Installing new languages ====== | ||
| - | If you want to run some code you wrote, you probably need some language or runtime to do so - eg Python, GCC, Haskell. We'll use a tool called [[https:// | ||
| - | |||
| - | This lets us use older versions when we need to, and means you don't have to wait for an admin to install something for you. | ||
| - | |||
| - | ===== Installing asdf ===== | ||
| - | |||
| - | asdf gets installed per user, so you'll need to install it yourself. | ||
| - | |||
| - | First, download it with '' | ||
| - | |||
| - | Then, make sure we load it whenever we login by doing '' | ||
| - | |||
| - | We can also get completions by doing '' | ||
| - | |||
| - | Now we can load it in our current session by doing '' | ||
| - | |||
| - | ===== Installing some plugins ===== | ||
| - | |||
| - | To deal with all the different languages you might want to install, asdf uses a /plugin/ for each of them. Once you've installed each plugin, you'll run the same asdf commands, but just change the plugin name for each of them. | ||
| - | |||
| - | You can see a full list of plugins [[here|https:// | ||
| - | |||
| - | Install it with '' | ||
| - | |||
| - | ===== Installing NodeJS ===== | ||
| - | |||
| - | Now we have the nodejs plugin, we can list all the versions with '' | ||
| - | |||
| - | To try it out, let's install a specific version of Nodejs - run '' | ||
| - | |||
| - | If you try to run '' | ||
| - | |||
| - | ===== Local overrides ===== | ||
| - | |||
| - | We set nodejs as a global default in the previous step, but suppose we have one project that runs an old version and one that needs a newer one. | ||
| - | |||
| - | For this, we can use local overrides. If you run '' | ||
tutorials/3.1680525089.txt.gz · Last modified: 2023/04/03 12:31 by tcmal
