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

bug: lastest version installed from homebrew seems broken #1393

Closed
babeal opened this issue Dec 22, 2022 · 2 comments
Closed

bug: lastest version installed from homebrew seems broken #1393

babeal opened this issue Dec 22, 2022 · 2 comments
Labels

Comments

@babeal
Copy link

babeal commented Dec 22, 2022

Describe the Bug

The command asdf works, I can install tools and versions. However, the tools are not available on path ("python", "npm", "node"). I think the problem is that asdf.sh.. its missing. It doesn't exist here HOME/.asdf/asdf.sh. It doesn't exist in the old recommendation of {brew --prefix asdf}/asdf.sh either. Is this version broken or is there a way to fix this? I have tried uninstalling asdf and deleting the entire .asdf directory and reinstalling...it results in the same behavior. No asdf.sh in the correct locations indicated by the documentation.

Steps to Reproduce

  1. brew install asdf
  2. Add asdf.sh to profile
  3. asdf plugin add nodejs
  4. asdf global nodejs lts
  5. asdf install
  6. npm --version -> command not found

Expected Behaviour

shims should work

Actual Behaviour

shims don't work any more

Environment

OS:
Darwin 3c22fbb81b82.ant.amazon.com 21.6.0 Darwin Kernel Version 21.6.0: Thu Sep 29 20:12:57 PDT 2022; root:xnu-8020.240.7~1/RELEASE_X86_64 x86_64

SHELL:
zsh 5.8.1 (x86_64-apple-darwin21.0)

ASDF VERSION:
v0.11.0

ASDF ENVIRONMENT VARIABLES:


ASDF INSTALLED PLUGINS:
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git master c9e5df4
python                       https://github.com/danhper/asdf-python.git master 8505457

asdf plugins affected (if relevant)

all

@babeal babeal added the bug label Dec 22, 2022
@dave-hay
Copy link

Had the same issue found solution here #785 (comment).

Run rm -rf ~/.asdf/shims; asdf reshim and that should fix it.

@jthegedus
Copy link
Contributor

jthegedus commented Dec 23, 2022

Yes, this was expected as the underlying cause of the Homebrew issues as seen in prior versions still exists. Please read the existing Homebrew threads as linked above (thanks @dave-hay 🙏 )

Of note, #1311 is a possible solution to this issue but is not yet released. If you install asdf via the git method you can track the repo HEAD by asdf update --head, I am not sure if Homebrew installations allow tracking of HEAD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants