From 14fac8dd2a017e2db230dc9326c9bcd5cde58862 Mon Sep 17 00:00:00 2001 From: "hugh.hyj" Date: Mon, 8 Nov 2021 17:25:12 +0800 Subject: [PATCH 1/2] docs: update address of china mirror --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b1606dd..1cd14982 100644 --- a/README.md +++ b/README.md @@ -101,8 +101,8 @@ NVM for Windows is a command line tool. Simply type `nvm` in the console for hel - **`nvm use [arch]`**: Switch to use the specified version. Optionally use `latest`, `lts`, or `newest`. `newest` is the latest _installed_ version. Optionally specify 32/64bit architecture. `nvm use ` will continue using the selected version, but switch to 32/64 bit mode. For information about using `use` in a specific directory (or using `.nvmrc`), please refer to [issue #16](https://github.com/coreybutler/nvm-windows/issues/16). - **`nvm root `**: Set the directory where nvm should store different versions of node.js. If `` is not set, the current root will be displayed. - **`nvm version`: Displays the current running version of NVM for Windows. -- **`nvm node_mirror `**: Set the node mirror.People in China can use *https://npm.taobao.org/mirrors/node/* -- **`nvm npm_mirror `**: Set the npm mirror.People in China can use *https://npm.taobao.org/mirrors/npm/* +- **`nvm node_mirror `**: Set the node mirror.People in China can use *https://npmmirror.com/mirrors/node/* +- **`nvm npm_mirror `**: Set the npm mirror.People in China can use *https://npmmirror.com/mirrors/npm/* ### :warning: Gotcha! From 7860ff1f80be114103bbfdb5b7e45a0163512a46 Mon Sep 17 00:00:00 2001 From: Grzegorz Dziadkiewicz Date: Sat, 20 Nov 2021 16:04:21 +0100 Subject: [PATCH 2/2] Use Windows defined env vars in all paths in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b1606dd..b69b1dba 100644 --- a/README.md +++ b/README.md @@ -55,9 +55,9 @@ There are situations where the ability to switch between different versions of N Uninstall any existing versions of Node.js before installing NVM for Windows (otherwise you'll have conflicting versions). Delete any existing Node.js installation directories (e.g., `%ProgramFiles%\nodejs`) that might remain. NVM's generated symlink will not overwrite an existing (even empty) installation directory. :eyes: **Backup any global `npmrc` config** :eyes: -(e.g. `C:\Users\\AppData\Roaming\npm\etc\npmrc`) +(e.g. `%AppData%\npm\etc\npmrc`) -Alternatively, copy the settings to the user config `C:\Users\\.npmrc`. Delete the existing npm install location (e.g. `C:\Users\\AppData\Roaming\npm`) to prevent global module conflicts. +Alternatively, copy the settings to the user config `%UserProfile%\.npmrc`. Delete the existing npm install location (e.g. `%AppData%\npm`) to prevent global module conflicts. #### Install nvm-windows