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: auto reshim not working for version 0.16.5 #2023

Open
ziyouchutuwenwu opened this issue Mar 19, 2025 · 0 comments
Open

bug: auto reshim not working for version 0.16.5 #2023

ziyouchutuwenwu opened this issue Mar 19, 2025 · 0 comments
Labels

Comments

@ziyouchutuwenwu
Copy link

ziyouchutuwenwu commented Mar 19, 2025

Describe the Bug

i have a nodejs env which is under asdf, after install angular cli, the cli command can not be found, after running asdf reshim, ng cli can be found.

i did not try versions from 0.16 to 0.16.4, but in my memory, the shell versions(version under 0.16) of asdf doesn't have such bugs.

Steps to Reproduce

  1. prepare asdf env
download asdf release from github

export ASDF_DATA_DIR="$HOME/.asdf"
export PATH="$ASDF_DATA_DIR/shims:$PATH"
  1. install nodejs env through asdf
asdf plugin add nodejs
asdf install nodejs 22.14.0
asdf set --home nodejs 22.14.0
  1. install angular cli
npm install -g @angular/cli
  1. run ng cli
$ ng new demo
zsh: command not found: ng
$ ls ~/.asdf/shims/
corepack  node  npm  npx
  1. manually running
$ asdf reshim
$ ls ~/.asdf/shims/
corepack  ng  node  npm  npx

ng works ok.

Expected Behaviour

asdf will auto reshim, no need to run it manually.

Actual Behaviour

i have to run asdf reshim manually after running npm install -g @angular/cli

Environment

$ asdf info  
OS:
Linux manjaro 6.6.83-1-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Mar 13 15:07:44 UTC 2025 x86_64 GNU/Linux

SHELL:
zsh 5.9 (x86_64-pc-linux-gnu)

BASH VERSION:
5.2.37(1)-release

ASDF VERSION:
v0.16.5

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/mmc/.asdf
ASDF_CONFIG_FILE=/home/mmc/.asdfrc

ASDF INSTALLED PLUGINS:
nodejs    https://github.com/asdf-vm/asdf-nodejs.git 5515b8705fbf4d610ede04bb9a3fc4812e3a4168

asdf plugins affected (if relevant)

No response

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

1 participant