forked from nodists/nodist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
usage.txt
74 lines (47 loc) · 3 KB
/
usage.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
A node version manager for windows
Usage:
nodist List all installed node versions.
nodist list
nodist ls
nodist dist List all available node versions.
nodist ds
nodist add <version> Download the specified node version.
nodist + <version>
nodist rm <version> Uninstall the specified node version.
nodist - <version>
nodist <version> Use the specified node version globally
nodist global <version> (downloads the executable, if necessary).
nodist local <version> Use <version> in this directory and its subdirectories.
(will add a ./node-version file)
nodist use <version> Use <version> in the current environment only
nodist env <version> (usually the current terminal window).
nodist run <version> -- <args..> Run <args> with the specified node version
nodist r <version> -- <args..> (downloads the executable, if necessary).
nodist bin <version> Get the path to the specified node executable
(downloads the executable, if necessary).
nodist path <version> Get the path to the specified node version directory
(downloads the executable, if necessary).
nodist npm <version> Activate the specified npm version
(downloads it if necessary)
nodist npm match Activate the npm version matching the active
node version.
nodist --help Display this help
nodist -v Display nodist version
Examples:
nodist 0.8.1 Use node v0.8.1 globally
nodist v0.5.10 Use node v0.5.10 globally
nodist - 0.5.10 Uninstall node v0.5.10
nodist r v0.8.1 -- foo.js -s Run `foo.js -s` with node v0.8.1, regardless
of the global version
nodist latest Use the latest available node version globally
(downloads the executable, if necessary).
nodist + all Installs *all* available node versions.
(Get yourself a cuppa in the meantime...)
Env vars:
NODIST_X64 Will always use the 64bit versions if set to '1'
HTTP_PROXY Will use the Url and port specified as a proxy
(e.g. http://myproxy.com:8213 )
NODIST_NODE_MIRROR Set an alternative URL to fetch the node executables
from (e.g. http://mymirror.com/dist)
NODIST_IOJS_MIRROR Set an alternative URL to fetch io.js exectuables
from.