Andrew Crites
e4149c380b
Only print npm version if it exists
10 years ago
Andrew Crites
caa69bc500
npm version: shell compatibility, test update
...
* Update test string that checks printed node version to pass with additional npm version display
* Remove echo -n for compatibility with shells that do not support it
10 years ago
Andrew Crites
e01bcb740b
Include npm version when displaying results of switch.
...
When running nvm use, successful changing of versions lists the new node version. The npm version may also be switched, but this is not listed.
This commit updates nvm to display the npm version that was switched to alongside the node version
10 years ago
Jo Liss
0dc177bf9c
Consolidate and avoid sed/cut calls, clean up pattern matches
...
Some patterns contained a no-op `*`; the `*` would match the empty string
because # or % replacement (unlike ## or %%) tries to find the shortest match.
10 years ago
Jordan Harband
c34502ebc2
`nvm_num_version_groups` should report 0 when given just a v or a .
10 years ago
Jordan Harband
3d764e6833
Add `nvm_ensure_default_set`
10 years ago
Jordan Harband
a26ef4f1be
Consolidate `reinstall-packages-from` logic to one place `nvm install`
10 years ago
Jordan Harband
d68f667464
When no arguments are passed to `nvm run X`, use `nvm exec` to open a REPL.
...
Fixes #625 . Tests will be in #717 .
10 years ago
Jordan Harband
c966204cd6
v0.24.1
10 years ago
Jordan Harband
d72b35b7b8
Remove external calls to `sed` using parameter filtering.
...
POSIX-compliant per http://stackoverflow.com/a/25536935/632724
Relates to #709
10 years ago
Jordan Harband
d50a0f46e9
Avoid some external calls by using case statements.
...
Relates to #709 .
10 years ago
Jordan Harband
a1a8e5a51b
Clean up logic a bit.
10 years ago
Jordan Harband
108f630732
Cache the `nvm_node_prefix` call.
10 years ago
Jordan Harband
96e73825bd
Consolidate faster default alias lookup, and use that explicit version to avoid a second default alias lookup in `nvm use default`.
...
Related to #709 .
10 years ago
Jo Liss
394e8505d9
Combine sed and grep commands
10 years ago
Jo Liss
fc86834e29
Add comment re nvm_ensure_version_installed performance
10 years ago
Jo Liss
609d9ee4ea
Improve startup performance. Closes #703
10 years ago
Pedro Costa
999c4111c1
Supresses error message on checking source options
10 years ago
HE Shi-Jun
207521d54b
support npm link
10 years ago
HE Shi-Jun
bf7bd3e793
Only filter the package npm, not any package name contains 'npm'
10 years ago
Jordan Harband
2b63f37f8d
Make `nvm_resolve_local_alias` not return `N/A` - that should be done as shallowly as possible.
10 years ago
Jordan Harband
230b479648
Making `help` error output actually output to stderr consistently.
10 years ago
Jordan Harband
5802ac3ea7
v0.24.0
10 years ago
Jordan Harband
8ae7a37d43
Fix bare `nvm use` when `nvm_ls_current` is "none".
10 years ago
Sayanee
16a730f4cc
amend all variables nvm_arch to capitalise
10 years ago
Sayanee
f8064b259d
fix: if case and capitalising variable
10 years ago
Sayanee
f8ee25ab5b
fix: local declaration of ksh compatibility
10 years ago
Sayanee
fb48129cd4
add support for node builds for armv6l named as arm-pi
10 years ago
Sayanee
9e154b159e
fix: download url for iojs armv6l and armv7l. #678 #227
10 years ago
Jordan Harband
fb853614a7
Use `nvm_ensure_version_installed` to consistently check if a version is installed.
...
Fixes #675 .
10 years ago
Jordan Harband
0d9329435c
Create `nvm_ensure_version_installed`
10 years ago
Jordan Harband
6c1a310846
Fix `nvm_resolve_alias default` from 7d22e0c458
10 years ago
Jordan Harband
7d22e0c458
Separate `nvm_resolve_alias`'s `nvm_version` behavior into `nvm_resolve_local_alias`.
10 years ago
Jordan Harband
cd481ff548
When none of the directories exist, don't `find` within them.
10 years ago
Jordan Harband
12ca8f2607
Add `nvm_is_alias` unit tests.
...
Fixes 670.
10 years ago
Jordan Harband
820074e1d7
Make sure checksum commands are not aliases.
...
Fixes #659 , #420 , #640 .
10 years ago
Jordan Harband
3190effedd
Add support for `node` and `iojs` implicit aliases.
10 years ago
Jordan Harband
d0617b5b79
Suppressing extraneous output from #622 .
10 years ago
Jordan Harband
286c808739
Cache values in local variables to avoid repeated lookups.
10 years ago
Jordan Harband
be56ff3b2e
Make sure multiple `nvm run` arguments get passed through to node/iojs properly.
...
Fixes #641 .
10 years ago
Jordan Harband
59e27f8108
Prevent `VERSION=''` output caused by double local declaration.
...
Fixes #644 .
10 years ago
Jordan Harband
0f1f3ed29c
v0.23.3
10 years ago
Jordan Harband
2116d2ff91
Filter out the io.js version dir from nvm_ls output.
...
Fixes #642 .
10 years ago
Jordan Harband
0b4c1e14cf
Ensure that `nvm run 0.12 --version` errors out sensibly when 0.12 isn't installed.
10 years ago
Jordan Harband
e1b7496cf0
Add nvm_is_valid_version
10 years ago
Jordan Harband
8a87133f71
When there's no `nvm run` output, don't echo an empty line.
10 years ago
Jordan Harband
0792945824
Bypass sha1sum/sha1 aliases. Fixes #640 .
10 years ago
Jordan Harband
a6819b3018
Fix `nvm ls v1.0.3` so that it locates `iojs-v1.0.3`.
...
Also fix `nvm uninstall v1.0.3` so it won't uninstall it if it's the current version.
node versions will still take priority if there's ever a version overlap.
10 years ago
Jordan Harband
1eaf6b53e4
v0.23.2
10 years ago
Jordan Harband
24c60e4e51
Fix a bug in nvm_remote_version that was breaking `nvm install stable`/`nvm install unstable`.
...
Fixes #630 .
10 years ago