Installer tarball install can make npm update -g resolve prime-agent from npm #1451
ayushcodes13
started this conversation in
Bug reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The official installer currently installs the release tarball into the user's global npm package tree. Because the package is not published to the npm registry, a later global update can try to resolve
prime-agentfrom npm and fail with a registry 404.Original issue/PR context:
npm update -gto fail with registry 404 forprime-agent#1042Observed behavior:
The previous proposed direction was to keep the release tarball install under a Prime-Agent-owned npm prefix and symlink only the
prime-agentcommand into the user's global npm bin directory. That keeps the command globally available while avoiding a fake globally-installed package entry thatnpm update -glater treats as registry-managed.Validation that was done in the earlier PR:
npm run checksh -n install.shprime-agenttarball, verifying the user global npm tree stayed empty, the owned prefix contained the package,npm update -g --dry-run --prefix <user-prefix>succeeded, and the user bin shim pointed to the owned prefixI understand the current process is discussion-first and that unsolicited PRs are not reviewed. If this installer behavior is still in scope, I can help with a focused implementation or additional reproduction details in whatever direction maintainers prefer.
All reactions