Skip to content

bug: auto reshim not working for version 0.16.5 #2023

@ziyouchutuwenwu

Description

@ziyouchutuwenwu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions