fix: gateway install preserves npm prefix via registry flag #376
Reference in New Issue
Block a user
Delete Branch "fix/gateway-install-prefix-eacces"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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