Remove npm global prefix workaround after use-m fix#1911
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #1910
Working session summaryImplemented and pushed PR 1911: #1911 Removed Hive Mind’s local npm global-prefix workaround now that upstream Verification:
PR is marked ready for review, merge state is clean, and This summary was automatically extracted from the AI working session output. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (200.1K + 9.9M cached) input tokens, 33.5K output tokens, $13.445166 cost 🤖 Models used:
📎 Log file uploaded as Repository (43837KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
Summary
Fixes #1910.
ensureWritableNpmGlobalPrefixbootstrap preflight and deletedsrc/npm-global-prefix.lib.mjs.tests/test-use-m-bootstrap-no-npm-prefix-workaround.mjs, which guards against reintroducing project-local npm prefix policy.Upstream Verification
link-foundation/use-m#55was merged on June 12, 2026 and closeslink-foundation/use-m#54.use-m@8.13.8is the latest npm release, published on June 12, 2026.use-m@8.13.8and verifieduse.js,use.mjs, anduse.cjsinclude the upstream non-writable npm global-root fallback: they checknpm root -g, preserve explicitnpm_config_prefix/NPM_CONFIG_PREFIXwith actionable errors, and otherwise redirect installs to a use-m-owned cache prefix underXDG_CACHE_HOMEor~/.cache/use-m/npm-global.Reproduction
The new regression guard fails on the pre-fix code because
src/npm-global-prefix.lib.mjsexists andsrc/use-m-bootstrap.lib.mjsimports/runs the local preflight:node tests/test-use-m-bootstrap-no-npm-prefix-workaround.mjsVerification
node tests/test-use-m-bootstrap-no-npm-prefix-workaround.mjsnpm run lintnpm run format:checknpm test(all 248 selected default test files passed)git diff --check