From 8ae84d66343b9e630630eb34bed727cfe7169a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20B=C3=B6ing?= Date: Sun, 25 Apr 2021 00:09:17 +0200 Subject: [PATCH] Add url encoded N_NODE_MIRROR to the README (#666) * Add url encoded N_NODE_MIRROR to the README * Clearify example sentence --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f18776b..cfb37d6 100644 --- a/README.md +++ b/README.md @@ -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 , 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 +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 . ## Custom Architecture