herd-community icon indicating copy to clipboard operation
herd-community copied to clipboard

[Bug]: Updating node should reinstall packages from old version

Open timkandel opened this issue 8 months ago • 0 comments

Platform

macOS

Operating system version

macOS Sequoia 15.4.1 (24E263)

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.20.0 (Build: 45)

PHP Version

No response

Bug description

When updating node using Herd I would expect my previously installed global packages to be carried over to the new version. For this Herd should call nvm using the command nvm install <new-version> --reinstall-packages-from=<old-version>

Steps to reproduce

  • install an outdated node version from cli (e.g. nvm install 18.19)
  • install any global npm package (e.g. npm install -g firebase-tools)
  • update node using Herd
  • open a new Terminal and try to use any previously installed npm package (e.g. firebase) -> zsh: command not found: firebase

Relevant log output


timkandel avatar Apr 24 '25 06:04 timkandel