Skip to content

Commit

Permalink
Add url encoded N_NODE_MIRROR to the README (tj#666)
Browse files Browse the repository at this point in the history
* Add url encoded N_NODE_MIRROR to the README

* Clearify example sentence
  • Loading branch information
BreakBB authored Apr 24, 2021
1 parent a58da13 commit 8ae84d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,17 @@ Display diagnostics to help resolve problems:
## Custom Source

If you would like to use a different Node.js mirror which has the same layout as the default <https://nodejs.org/dist/>, you can define `N_NODE_MIRROR`.
The most common example is users in China can define:
The most common example is from users in China who can define:

export N_NODE_MIRROR=https://npm.taobao.org/mirrors/node

There is also `N_NODE_DOWNLOAD_MIRROR` for a different mirror with same layout as the default <https://nodejs.org/download>
If the custom mirror requires authentication you can [url encode](https://urlencode.org/) the credentials into the URL:

https://username:password@host:port/path

The encoding is especially important when the username or password contains special characters.

There is also `N_NODE_DOWNLOAD_MIRROR` for a different mirror with same layout as the default <https://nodejs.org/download>.

## Custom Architecture

Expand Down

0 comments on commit 8ae84d6

Please sign in to comment.