Skip to content

Instantly share code, notes, and snippets.

@dimified
Last active January 9, 2019 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimified/a40b0da91309e1170cdf86c81ca14fd2 to your computer and use it in GitHub Desktop.
Save dimified/a40b0da91309e1170cdf86c81ca14fd2 to your computer and use it in GitHub Desktop.
Create package registry
# Login user to specific registry:
npm adduser --registry=<REGISTRY-URL>
# Point to registry:
npm config set @myco:registry https://reg.example.com
# In your CI environment set the auth token (you get it from the .npmrc)
npm config set '//reg.example.com/:_authToken' 'xxxxxxxx'
# Install package:
npm install @myco/package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment