Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jdcargile
jdcargile / ConfigureForGitHubPackage
Last active June 19, 2020 21:56
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