Skip to content

Commit 48a7f6e

Browse files
committed
docs: update README based on feedback
1 parent ee6e925 commit 48a7f6e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,16 @@ You added this library as a dependency to your repository's package.json.
9595
- Choose `Generate new token (classic)`.
9696
- In the scope, select at least `read:packages`.
9797
- 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}
101106
```
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`).
103108

104109
#### If the problem persists
105110
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

Comments
 (0)