Replace temp .npmrc + --userconfig approach in installGatewayPackage() with the --@mosaic:registry CLI flag
The real ~/.npmrc (including prefix=) is now honoured, eliminating EACCES for non-root installs
Bump @mosaic/cli and @mosaic/mosaic to 0.0.15
Root cause
--userconfig replaces the entire user npmrc, discarding prefix=/home/<user>/.npm-global. Without the prefix, npm falls back to /usr/lib/node_modules => EACCES.
Quality gates
typecheck: pass
lint: pass
test: 34 passed
prettier: pass
🤖 Generated with Claude Code
## Summary
- Replace temp .npmrc + `--userconfig` approach in `installGatewayPackage()` with the `--@mosaic:registry` CLI flag
- The real `~/.npmrc` (including `prefix=`) is now honoured, eliminating EACCES for non-root installs
- Bump `@mosaic/cli` and `@mosaic/mosaic` to 0.0.15
## Root cause
`--userconfig` replaces the entire user npmrc, discarding `prefix=/home/<user>/.npm-global`. Without the prefix, npm falls back to `/usr/lib/node_modules` => EACCES.
## Quality gates
- typecheck: pass
- lint: pass
- test: 34 passed
- prettier: pass
🤖 Generated with Claude Code
Replace temp .npmrc + --userconfig approach with the --@mosaic:registry CLI
flag so the user's real ~/.npmrc (including prefix=/home/user/.npm-global)
is honoured. This eliminates EACCES errors for non-root installs that
relied on a user-level prefix config.
Bump @mosaic/cli and @mosaic/mosaic to 0.0.15.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
--userconfigapproach ininstallGatewayPackage()with the--@mosaic:registryCLI flag~/.npmrc(includingprefix=) is now honoured, eliminating EACCES for non-root installs@mosaic/cliand@mosaic/mosaicto 0.0.15Root cause
--userconfigreplaces the entire user npmrc, discardingprefix=/home/<user>/.npm-global. Without the prefix, npm falls back to/usr/lib/node_modules=> EACCES.Quality gates
🤖 Generated with Claude Code