install directly from git package registry code example
Example: create github packages
dnguyen:~ dalenguyen$ npm login --registry=https://npm.pkg.github.com
Username: GitHub-username
Password: your-personal-access-token
Email: (this IS public) [email protected]
Logged in as dalenguyen on https://npm.pkg.github.com/.