-
Notifications
You must be signed in to change notification settings - Fork 910
Closed
Labels
Description
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
- prepare asdf env
download asdf release from github
export ASDF_DATA_DIR="$HOME/.asdf"
export PATH="$ASDF_DATA_DIR/shims:$PATH"- install nodejs env through asdf
asdf plugin add nodejs
asdf install nodejs 22.14.0
asdf set --home nodejs 22.14.0- install angular cli
npm install -g @angular/cli- run ng cli
$ ng new demo
zsh: command not found: ng
$ ls ~/.asdf/shims/
corepack node npm npx- manually running
$ asdf reshim
$ ls ~/.asdf/shims/
corepack ng node npm npxng 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 5515b8705fbf4d610ede04bb9a3fc4812e3a4168asdf plugins affected (if relevant)
No response
augustobmoura