Skip to content

fix(developer): install all supported Node LTS majors and age-gated npm - #134

Merged
catinspace-au merged 3 commits into
mainfrom
fix/node-lts-tracking
Nov 16, 2026
Merged

catinspace-au merged 3 commits into
mainfrom
fix/node-lts-tracking

Conversation

@catinspace-au

Copy link
Copy Markdown
Contributor

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.

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.
@catinspace-au
catinspace-au marked this pull request as ready for review November 16, 2026 02:19
@catinspace-au
catinspace-au merged commit 8f1dae7 into main Nov 16, 2026
18 checks passed
@catinspace-au
catinspace-au deleted the fix/node-lts-tracking branch November 16, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant