Last active
June 19, 2020 21:56
-
-
Save jdcargile/37b45f5d52fef281d8863e114b6a52eb to your computer and use it in GitHub Desktop.
How to configure repo for GitHub Package Installation
This file contains 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
# Create new directory for your project | |
mkdir my-project | |
cd my-project | |
# NPM login using your GitHub username an a PAT (Personal Access Token) | |
npm login --registry=https://npm.pkg.github.com | |
# Add .npmrc file to the project directory telling it where to grab your new package | |
echo 'registry=https://npm.pkg.github.com/control4' > .npmrc | |
# Install your new package | |
npm install @control4/lighting-compatibility-element@0.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference: https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages#installing-a-package