Tim Caswell
8dad534464
Remove broken wget emulation
13 years ago
Maciej Małecki
09483f422e
[feature] Add `run` command
...
`run` command runs given node version without modyfing global state:
[maciej@PC07 nvm (run)]$ node --version
v0.4.12
[maciej@PC07 nvm (run)]$ nvm run 0.4.12
Running node v0.4.12
> process.version
'v0.4.12'
> [maciej@PC07 nvm (run)]$ nvm run 0.5.9
Running node v0.5.9
> process.version
'v0.5.9'
> [maciej@PC07 nvm (run)]$ node --version
v0.4.12
13 years ago
Scott Bronson
26b07fbdff
remove references to stable and latest
14 years ago
Scott Bronson
656549dd44
make "list" a synonym for "ls"
14 years ago
Marcelo Diniz
f939adbedb
Fix wrong full version matching
14 years ago
Tim Caswell
ac9a52886d
Remove support for sync latest and stable. I never liked them. Fork if you want them
...
Change-Id: I9092c5625305f54212625af0c16f7ead73a3d9fa
14 years ago
Maciej Małecki
33c91398bf
Don't allow installing already installed version.
...
Trying to install already installed version causes misleading message
from curl and nvm:
$ nvm install v0.4.11
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot
resume.
nvm: install v0.4.11 failed!
Of course, resuming interrupted installs is still possible (script
checks for existance of `$VERSION` in `$NVM_DIR`, not `$NVM_DIR/src`).
14 years ago
Will
92703939ee
uninstall should delete the extracted source files from the src directory, not nvm root
14 years ago
Christopher Roach
fd1eb7559b
Added a fix for issue #59
14 years ago
Geoffrey Huntley
964e7c303c
updated shorthand for -# to --progress-bar on wget emulation function()
14 years ago
Geoffrey Huntley
1251684440
- version detection now works with zsh
...
- curl routine now compatible with zsh
- changed curl to use --progress-bar instead of unsafe shorthand (-#)
14 years ago
Evan Meagher
46302a25d2
Add unalias and uninstall commands.
14 years ago
Kieran Huggins
e9f35e7b15
don't shed all over the user's shell
14 years ago
Kieran Huggins
fab5db0ec8
add support for release directories ( e.g. >= v0.5.1 )
14 years ago
Jakub Nešetřil
4c8d3a70ea
Added copy-packages command
14 years ago
Tim Caswell
8d97b78da7
Fix a couple little bugs
14 years ago
Carter Thaxton
61585251f5
Force unaliased use of ls, for those of us who alias ls in their shell
14 years ago
Tim Caswell
37ffd82af4
Update readme and comment
14 years ago
Tim Caswell
66a9f01a0e
Fix for ZSH by wavded
14 years ago
Tim Caswell
f668d354a9
Update the sample text to reflect current stable
14 years ago
Scott Bronson
d13d6b199a
use a subshell instead of setting the START var
...
also don't try to install npm if node installation fails.
14 years ago
Isaac Wolkerstorfer
cd3304548f
Fix some syntax issues
14 years ago
Isaac Wolkerstorfer
45b89ab396
Create alias dir on demand
14 years ago
Isaac Wolkerstorfer
57d62762e1
Don't overwrite existing NVM_DIR vars
14 years ago
Isaac Wolkerstorfer
8ec6fb22fd
Create alias dir on demand
14 years ago
Isaac Wolkerstorfer
3d0082fa60
Suppress unnecessary output
14 years ago
Isaac Wolkerstorfer
c060a287d0
Use curl or wget, whichever is available
...
Also spit out an error message if we have neither.
14 years ago
Isaac Wolkerstorfer
590b283e65
Change version() to nvm_version()
...
It's a bit less conflict-y
14 years ago
Isaac Wolkerstorfer
a7328b3711
Add output to sync if stable/latest changes
14 years ago
Isaac Wolkerstorfer
861766372d
Add a special "default" alias
...
If you set a "default" alias, it will automatically be loaded when you
start a new shell.
14 years ago
Isaac Wolkerstorfer
a77c632e2a
Add aliases to versions
...
Aliases are stored as plaintext files in the $NVM_DIR/alias dir.
They may store either an explicit version (v0.3.6) or an implied version
("latest"). The latter is a "moving target", and thus possibly
dangerous, but can be useful, too.
14 years ago
Isaac Wolkerstorfer
0f6680e8b7
Use version descriptors for 'install' and 'use'
...
Allows things like "nvm install latest" or "nvm use stable" or "nvm use 0.2"
14 years ago
Isaac Wolkerstorfer
b2c6be9e08
Show all available versions in ls
...
Adds a cache of all versions available on nodejs.org using simple empty files as placeholders. When a new version is installed, it will replace the placeholder with a directory.
This makes it easier for users to see what versions are available for install, and what the latest and stable versions are.
14 years ago
Carter Thaxton
d3b5853454
Set MANPATH on nvm use and deactivate
14 years ago
Tim Caswell
077a661696
zsh prompts get interfered with environment variables that are named the
...
directory you are in. Don't define START unless we need to.
(Thanks cgcardona)
Change-Id: I256a4db0af9b40b64bc0fe8d6e393f614132db68
14 years ago
Tim Caswell
924d965964
Clean up npm integration a little bit
...
Change-Id: I849f1056d0188aef264777e18270728b1535f61c
14 years ago
Tim Caswell
dd32e5880d
Trim and update nvm
14 years ago
Tim Caswell
a078d6427b
Install npm automatically
14 years ago
Tim Caswell
91d2be5179
Trim and update nvm
14 years ago
Tim Caswell
e0bbea635f
Don't make the function definition file executable
15 years ago
Tim Caswell
359a83e6c5
Use NVM_PATH instead of NODE_PATH
15 years ago
isaacs
06e882b332
Add a package.json so that npm can install this.
15 years ago
Tim Caswell
7df245c569
Remove clone and update, these are better done by hand, add listlibs and a way to use the latest stable version
15 years ago
Tim Caswell
2527ff6b1f
Use lib instead of modules for certain scripts that assume ../lib from the /bin folder.
15 years ago
Tim Caswell
d67c7011f4
Have two module installers, one for linked modules (for ones you actively develop) and one that copies the module so that the original source tree can be deleted.
15 years ago
Tim Caswell
09e7c3227b
Add a NODE_BIN env variable to the current bin folder so installers know where to put their stuff. Also add a simple installer for projects without one, but that follow the standard layout.
15 years ago
Tim Caswell
93e28c3b2f
Add per/version NODE_PATH and a deactivate command to return everything back to normal.
15 years ago
Tim Caswell
54495e56ae
Fix a couple bugs and enable the --debug flag for HEAD version.
15 years ago
Tim Caswell
53e64fc3b5
Put a star by the active version in "nvm list" and don't allow "nvm use" to set a version that isn't installed.
15 years ago
Tim Caswell
47d5982ef8
Update to replace an old nvm path if it exists already in $PATH.
15 years ago