Skip to content

Commit 172010d

Browse files
authored
Remove other remotes from default settings (#148)
Most Node.js users want to choose from regular released builds. Those who want nightly builds or some other fork can add remotes as described in the readme.
1 parent 97315d1 commit 172010d

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,27 @@ Example: Configure `launch.json` so VS Code uses NVS to launch node version 6.10
107107
Or, remove the version string from `"runtimeArgs"` to get the version from a `.node-version` file in the project directory. For more details, see the [NVS VS Code documentation](doc/VSCODE.md) or run `nvs help vscode`.
108108

109109
## Configurable remotes
110-
The `nvs remote` command allows configuration of multiple named download locations. NVS manages versions from different remote locations separately, so there is no risk of version collisions. By default there are remotes pointing to Node.js official releases and nightly builds:
110+
The `nvs remote` command allows configuration of multiple named download locations. NVS manages versions from different remote locations separately, so there is no risk of version collisions. By default there is a single remote pointing to Node.js official releases:
111111
```
112112
$ nvs remote
113113
default node
114-
nightly https://nodejs.org/download/nightly/
115114
node https://nodejs.org/dist/
116115
```
117-
This makes it easy to get builds from other sources. The following command sequence lists nightly builds, and adds a build:
116+
This makes it possible to get builds from other sources. The following command sequence adds a remote entry for nightly builds, lists nightly builds, and adds a build:
118117
```
119-
$ nvs lsr nightly/7
120-
7.0.1-nightly2016102527e1749dcb
118+
$ nvs remote add nightly https://nodejs.org/download/nightly/
119+
$ nvs lsr nightly/13
120+
nightly/13.1.1-nightly20191120c7c566023f
121121
...
122-
$ nvs add nightly/7
122+
$ nvs add nightly/13
123123
```
124+
125+
Other remote sources are supported, for example:
126+
```
127+
nvs remote add iojs https://iojs.org/dist/
128+
nvs remote add chakracore https://nodejs.org/download/chakracore-release/
129+
```
130+
124131
## Aliases
125132
An alias refers to a combination of a remote name and a semantic version. (Processor architectures are not aliased.) When setting an alias, the remote name may be omitted, in which case the alias refers to the default remote. An alias may be used in place of a version string in any of the other commands.
126133
```

defaults.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
"aliases": {
33
},
44
"remotes": {
5-
"default": "node",
6-
"node": "https://nodejs.org/dist/",
7-
"iojs": "https://iojs.org/dist/",
8-
"nightly": "https://nodejs.org/download/nightly/",
9-
"chakracore": "https://nodejs.org/download/chakracore-release/",
10-
"chakracore-nightly": "https://nodejs.org/download/chakracore-nightly/"
5+
"default": "node",
6+
"node": "https://nodejs.org/dist/"
117
},
128
"bootstrap": "node/10.12.0"
139
}

0 commit comments

Comments
 (0)