asdf globalコマンドが使用できない際の対処方法

macの新規セットアップ時、 “asdf global xx”が実施できなかったので調査を実施しました。

参考URL

asdf globalコマンドが消えた / 使えない

解消方法

"asdf global xx vvv"

ではなく

asdf set --home xx vvv

と記載する。

実行例

asdf set --home nodejs 23.10.0

asdf help

hoge@fuga xxx % asdf help
version: 0.16.6

MANAGE PLUGINS
asdf plugin add  []      Add a plugin from the plugin repo OR,
                                        add a Git repo as a plugin by
                                        specifying the name and repo url
asdf plugin list [--urls] [--refs]      List installed plugins. Optionally show
                                        git urls and git-ref
asdf plugin list all                    List plugins registered on asdf-plugins
                                        repository with URLs
asdf plugin remove                Remove plugin and package versions
asdf plugin update  []   Update a plugin to latest commit on
                                        default branch or a particular git-ref
asdf plugin update --all                Update all plugins to latest commit on
                                        default branch

MANAGE TOOLS
asdf current                            Display current version set or being
                                        used for all packages
asdf current                      Display current version set or being
                                        used for package
asdf help  []            Output documentation for plugin and tool
asdf install                            Install all the package versions listed
                                        in the .tool-versions file
asdf install                      Install one tool at the version
                                        specified in the .tool-versions file
asdf install             Install a specific version of a package
asdf install  latest[:]  Install the latest stable version of a
                                        package, or with optional version,
                                        install the latest stable version that
                                        begins with the given string
asdf latest  []          Show latest stable version of a package
asdf latest --all                       Show latest stable version of all the
                                        packages and if they are installed
asdf list  [version]              List installed versions of a package and
                                        optionally filter the versions
asdf list all  []        List all versions of a package and
                                        optionally filter the returned versions
asdf set [-u] [-p]   Set a tool version in a .tool-version in
                                        the current directory, or a parent
                                        directory.
asdf uninstall           Remove a specific version of a package
asdf where  []           Display install path for an installed
                                        or current version
asdf which                     Display the path to an executable

UTILS
asdf exec  [args...]           Executes the command shim for current version
asdf env  [util]               Runs util (default: `env`) inside the
                                        environment used for command shim execution.
asdf info                               Print OS, Shell and ASDF debug information.
asdf version                            Print the currently installed version of ASDF
asdf reshim              Recreate shims for version of a package
asdf shimversions              List the plugins and versions that
                                        provide a command

RESOURCES
GitHub: https://github.com/asdf-vm/asdf
Docs:   https://asdf-vm.com

PLUGIN nodejs
  asdf nodejs nodebuild
  asdf nodejs resolve
  asdf nodejs update-nodebuild

"Late but latest"
-- Rajinikanth

コメント

タイトルとURLをコピーしました