Bug: Node's default_packages_file does not expand ~ (tilde)
#8606
-
|
mise version: v2026.3.9 DescriptionWhen I set The same setting works fine for Ruby. Steps to Reproduce
[settings.node]
default_packages_file = "~/.config/mise/default-npm-packages"
Expected: default npm packages are installed after Node installation. Actual: default packages are silently skipped — no error, no install. Suspected CauseLooking at the source, the two plugins seem to handle the path differently.
let default_gems_file = file::replace_path(&settings.ruby.default_packages_file);
let default_packages_file = settings.node.default_packages_file();I'm not deeply familiar with the Rust internals, but this looks like the reason WorkaroundUse an absolute path for the Node setting: [settings.node]
# ~ is not expanded — use an absolute path as a workaround
default_packages_file = "/home/yourname/.config/mise/default-npm-packages"
[settings.ruby]
# ~ works correctly here
default_packages_file = "~/.config/mise/default-gems" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
thx! |
Beta Was this translation helpful? Give feedback.
thx!