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
Copy file name to clipboardExpand all lines: README.md
+9-4
Original file line number
Diff line number
Diff line change
@@ -95,11 +95,16 @@ You added this library as a dependency to your repository's package.json.
95
95
- Choose `Generate new token (classic)`.
96
96
- In the scope, select at least `read:packages`.
97
97
- Remember to copy the generated token before it disappears.
98
-
1. Add the following line to your `.npmrc` file:
99
-
```
100
-
//npm.pkg.github.com/:_authToken=your_new_token
98
+
2. Save your new token to an environment variable (e.g. in `~/.bashrc` or `~/.zshrc`):
99
+
```bash
100
+
export NPM_TOKEN=${YOUR_TOKEN}
101
+
```
102
+
where `YOUR_TOKEN` is the token you obtained from Github remember to refresh your terminal after adding the it. (e.g. `source ~/.bashrc` depending on your shell)
103
+
3. Add the following line to your `.npmrc` file:
104
+
```bash
105
+
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}
101
106
```
102
-
1. Re-run your repository's installation step (e.g. `yarn install`).
107
+
4. Re-run your repository's installation step (e.g. `yarn install`).
103
108
104
109
#### If the problem persists
105
110
Check that your user has permissions to access https://github.com/hivemq. You might need to contact an admin to help you out.
0 commit comments