Use Github Packages in a Nodejs project

author

Devmnj • Thu Jul 15 2021

0 min read

To use a package from GitHub package add the .npmrc file in the root of the project and include the dependency in package.json

.npmrc

This file tell the npm what registries you are using , along side npm registry.

Source code

//.npmrc

@OWNER:registry=https://npm.pkg.github.com

Replace the OWNER with organization / user name and add install all the dependencies

Source code

npm intsall