fix: remove --registry from npm install to avoid 404 on transitive deps
The @mosaic scope registry is configured in ~/.npmrc. Passing --registry on the install command overrides the default registry for ALL packages, causing non-@mosaic deps like @clack/prompts to 404 against Gitea.
This commit is contained in:
@@ -189,8 +189,10 @@ else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# NOTE: Do NOT pass --registry here. The @mosaic scope is already mapped
|
||||
# in ~/.npmrc. Passing --registry globally would redirect ALL deps (including
|
||||
# @clack/prompts, commander, etc.) to the Gitea registry, causing 404s.
|
||||
npm install -g "${CLI_PKG}@${LATEST}" \
|
||||
--registry="$REGISTRY" \
|
||||
--prefix="$PREFIX" \
|
||||
2>&1 | sed 's/^/ /'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user