Skip to content

Instantly share code, notes, and snippets.

jdcargile / ConfigureForGitHubPackage
Last active Jun 19, 2020
How to configure repo for GitHub Package Installation
View ConfigureForGitHubPackage
# 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=
# Add .npmrc file to the project directory telling it where to grab your new package
echo 'registry=' > .npmrc