You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Using a package from the GitHub Package registry for NPM
17
+
18
+
There is full documentation [on the GitHub website here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#installing-a-package). Using the package hosted on GitHub requires setting up an `.npmrc` file for the project's scope in the consuming project that looks like this:
19
+
20
+
```bash
21
+
@rooster212:registry=https://npm.pkg.github.com
22
+
```
23
+
24
+
You also have to login to the GitHub package registry (as this is a public package, it should work for anyone).
If you use MFA on your GitHub account, you will need to setup a Personal Access Token in your profile settings and use that in place of your password when prompted in the `npm login` step.
0 commit comments