Skip to content

Commit

Permalink
set default registry
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneale committed Jan 20, 2025
1 parent 6bb233f commit 17f203e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/desktop/src/bin/npx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ log "hermit: $(which hermit)"
log "node: $(which node)"
log "npx: $(which npx)"

# Set default registry to npm
export NPM_CONFIG_REGISTRY="https://registry.npmjs.org/"

# Final step: Execute npx with passed arguments
log "Executing 'npx' command with arguments: $*"
npx "$@" || log "Failed to execute 'npx' with arguments: $*"
Expand Down

0 comments on commit 17f203e

Please sign in to comment.