Repository navigation
fix(developer): install all supported Node LTS majors and age-gated npm - #134
Merged
Merged
Conversation
The Node majors came from two pins, 24 system-wide and 22 through fnm. Node 26 became LTS on 2026-10-28 and nothing installed it. npm came bundled with Node. Node 26 shipped npm 11.20.0. npm was at 12.2.2. The installer and hyperi-update read the Node.js release schedule and install every major between its LTS start and end of life. The newest comes from NodeSource or Homebrew node@N, and fnm holds the others. The pins are the fallback when the schedule cannot be read. The update command moves the NodeSource repo to a new LTS major. It removes fnm versions past end of life. npm and pnpm are npm globals in ~/.npm-global. Each uses the newest release at least hyperi_release_min_age_days old (npm --before, pnpm minimumReleaseAge). Node 25+ ships no corepack. pnpm no longer comes from corepack. The corepack links in /usr/bin are removed.
hyperi-update on macOS asked y/N before starting. Homebrew and softwareupdate asked for the password again partway through. Their sudo calls come from child processes that the script's ticket did not cover. The update runs without a y/N by default. It takes the password once, then installs a sudoers drop-in. The drop-in allows passwordless sudo until the run exits. An EXIT trap removes it, even on Ctrl-C. A box with passwordless sudo gets no drop-in. --ask restores the confirmation and the reboot offer. --yes is still accepted.
install.sh built its Ansible venv on python3, which Homebrew makes 3.15. ansible-core fails on import there. install.sh tries python3, then 3.14, 3.13 and 3.12, and keeps the first interpreter where ansible runs. Homebrew 7 rejects formulae from an untrusted tap. This blocked git-scrub and macbash installs. The role trusts hyperi-io/tap after tapping it. On current macOS, launchctl bootstrap returns 5 rather than 37 for a loaded agent. The role skips bootstrap for the colima agent when launchctl print finds it. Mac validation: no failures or warnings with the soe, soe-gui, developer-gui, developer-rust and infrastructure tags.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The installer and hyperi-update read the Node.js release schedule and install every major between its LTS start and end of life. Node 26 comes from NodeSource or Homebrew, with 24 and 22 through fnm. hyperi-update moves NodeSource to a new LTS major and removes fnm versions past end of life. The old pins are the fallback when the schedule cannot be read.
npm and pnpm are installed through npm in ~/.npm-global. Each uses its newest release at least 7 days old. Node 25+ ships no corepack. pnpm comes from npm. The corepack links in /usr/bin are removed. A pnpm global within the 7-day cooldown is reported as held instead of failed.
On macOS, hyperi-update skips the y/N prompt by default (--ask restores it). It asks for the sudo password once. A sudoers drop-in keeps sudo access until the run exits.
Ubuntu 24.04 container results: updating a main installation with this branch moved Node 24 to 26 and removed corepack links. Two installs from this branch gave changed=0 on the second run.
The macOS Node, fnm, npm and pnpm update sections completed without errors. The macOS installer and macOS sudo drop-in are untested. The drop-in needs an interactive terminal.