Skip to content

Instantly share code, notes, and snippets.

@jdcargile
Last active June 19, 2020 21:56
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 jdcargile/37b45f5d52fef281d8863e114b6a52eb to your computer and use it in GitHub Desktop.
Save jdcargile/37b45f5d52fef281d8863e114b6a52eb to your computer and use it in GitHub Desktop.
How to configure repo for GitHub Package Installation
# 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