Version: Deno 2.0.0
As stated in the documentation, DENO_INSTALL_ROOT should default to $HOME/.deno/bin. However, in get_installer_root, it defaults to simply $HOME/.deno (https://github.com/denoland/deno/blob/473e3069de4bf5877a6f1140aa0462e05f745536/cli/tools/installer.rs#L117-L137), and the bin is only added later (https://github.com/denoland/deno/blob/473e3069de4bf5877a6f1140aa0462e05f745536/cli/tools/installer.rs#L212-L218, https://github.com/denoland/deno/blob/473e3069de4bf5877a6f1140aa0462e05f745536/cli/tools/installer.rs#L430-L436). This causes some weird behaviour when DENO_INSTALL_ROOT is set (for example, if it is set to $HOME/.deno/bin, packages will be installed to $HOME/.deno/bin/bin).