Skip to content

Instantly share code, notes, and snippets.

@whoisYeshua
Last active February 4, 2025 18:37
Show Gist options
  • Save whoisYeshua/c008567c0f1c29434bacad000fe6dfd6 to your computer and use it in GitHub Desktop.
Save whoisYeshua/c008567c0f1c29434bacad000fe6dfd6 to your computer and use it in GitHub Desktop.
NPM custom registry and how to set them
# npm config set //nexus.example.com/npm-all/:_auth=$(echo -n 'test:1234' | base64)
//nexus.example.com/npm-all/:_auth=dGVzdDoxMjM0
# npm config set //nexus.example.com/npm-releases/:_auth=$(echo -n 'test:1234' | base64)
//nexus.example.com/npm-releases/:_auth=dGVzdDoxMjM0
# npm config set @myco:registry=http://nexus.example.com/npm-releases/
@myco:registry=http://nexus.example.com/npm-releases/
# npm config set registry https://nexus.example.com/npm-all/
registry=https://nexus.example.com/npm-all/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment