GNVM
is simple multi node.js version manager on Windows by GO, like nvm
nvmw
nodist
-
For go user, usage go get
go get github.com/Kenshin/gnvm
-
For git user, usage git clone
git clone git@github.com:Kenshin/gnvm-bin.git
-
For curl user, usage curl -O
curl -L https://github.com/Kenshin/gnvm-bin/blob/master/32-bit/gnvm.exe?raw=true -o gnvm.exe
curl -L https://github.com/Kenshin/gnvm-bin/blob/master/64-bit/gnvm.exe?raw=true -o gnvm.exe
- Download
gnvm.exe
innode.exe
folder.(recommended) - Download
gnvm.exe
in any folder, add this folder topath
environment variable.
- Download
gnvm.exe
in any folder, add this folder topath
environment variable.
Run cmd
(administrator permissions) and input gnvm version
, if output print Current version x.x.x
configuration is successful.
global
The current node.exe version.latest
The stable node.exe version.
Usage:
gnvm
gnvm [command]
Available Commands:
version :: Print the version number of gnvm.exe
install :: Install any node.exe version
uninstall :: Uninstall local node.exe version
use :: Use any version of the local already exists
update :: Update latest node.exe
ls :: List show all <local> <remote> node.exe version
node-version :: Show <global> <latest> node.exe version
config :: Setter and getter registry
help [command] :: Help about any command
- Run
gnvm
need administrator permissions. - The first run
gnvm
need usegnvm config INIT
(recommended) gnvm
can download to any folder, suggestgnvm.exe
innode.exe
folder.- Use
gnvm config registry xxx
change reigistry, default registry is http://nodejs.org/dist/. gnvm
depend on.gnvmrc
, please don't modify manually.gnvm install npm
support latest npm, but0.1.0
version only support install npm tonode.exe
folder, can't custom npm path.
gnvm config INIT
gnvm config registry dist.u.qiniudn.com
gnvm update latest
gnvm node-version
gnvm install 0.11.1 0.11.2 0.11.3
gnvm use 0.11.1
gnvm ls
gnvm uninstall 0.11.1
gnvm config INIT
gnvm config registry dist.u.qiniudn.com
gnvm install latest -g
gnvm node-version
gnvm ls
gnvm install npm
- https://github.com/spf13/cobra
- https://github.com/tsuru/config
- https://github.com/pierrre/archivefile
- https://github.com/daviddengcn/go-colortext
A. gnvm
is single cli file, more than nvmw
feature, e.g. gnvm update
, gnvm install npm
, gnvm config registry xxxx
, more like nvm
.
- Email kenshin@ksria.com
- Github issue
-
2014-07-23, Version
0.1.3
:- Fixbug of
node.exe
process to take up,gnvm use x.xx.xx
not work. - When usage
gnvm use x.xx.xx
, killnode.exe
process automatically.
- Fixbug of
-
2014-07-15, Version
0.1.2
:- Adapter go version 1.3.
- Fix bug of usage
gnvm update latest -g
adapter go version error.
-
2014-06-06, Version
0.1.1
:- Change
util/p/print.go
togithub.com/Kenshin/cprint
. - change
util/curl/curl.go
togithub.com/Kenshin/curl
. - Add this project to travis-ci.org.
- Remove
nodehandle.cmd
method. - Optimize
nodehandle.copy
method logic. - Fix bug of When not global node.exe, need get gnvm.exe path.
- Change
-
2014-05-30, Version
0.1.0
:- version
- install
- uninstall
- use
- update
- ls
- node-version
- config
(The MIT License)
Copyright (c) 2014 Kenshin Wang kenshin@ksria.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.