mirror of
https://github.com/andwati/dotfiles.git
synced 2026-10-18 02:52:52 +00:00
The lazy-load stub wired nvm/node/npm/npx/corepack as wrapper functions that called a private helper, _nvm_lazy_load, to source nvm.sh on first real use. That helper went missing in some non-interactive shell contexts (e.g. a coding agent's captured shell snapshot only kept the public wrapper functions, not the underscore-prefixed helper), leaving the wrappers calling a function that no longer existed - infinite recursion via FUNCNEST, every npm/node/nvm invocation broken. Sourcing nvm.sh eagerly costs 300-700ms on shell startup but has no moving parts to go missing.