1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-05 08:08:02 +00:00

Add Fix Unlinked Node Binaries With asdf as a unix til

This commit is contained in:
jbranchaud
2020-08-05 20:47:35 -05:00
parent 20c7567f2b
commit d76674e5b1
2 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
# Fix Unlinked Node Binaries With asdf
You're using `asdf` to manage your version(s) of `node.js`. You have some
packages globally installed with `yarn` that are available as executable
binaries. When you install and switch to a new version of Node, those global
binaries no longer work.
Even uninstalling and re-installing those particular packages doesn't
necesarily fix it. That's because broken symlinks have been left behind.
`asdf` can help fix this with its `reshim` command:
```bash
$ asdf reshim <name> <version>
```
For instance, if you want to start using `14.4.0`, you can reshim like this:
```bash
$ asdf reshim nodejs 14.4.0
```
This will re-sync all the symlinks so that you are able to access and run those
binaries again.