Last active
January 9, 2019 11:14
-
-
Save dimified/a40b0da91309e1170cdf86c81ca14fd2 to your computer and use it in GitHub Desktop.
Create package registry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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