Commit Graph

64 Commits

Author SHA1 Message Date
Isak Hjertenes Vik
42fd4a63db Uses correct path when moving npm from temp folder to node_modules + error handling 2019-02-01 17:07:08 +01:00
Corey Butler
72754b3c33 Updated build tools. Now supports links to elevate.cmd and elevate.vbs when using nvm root (fixes #381). 2018-08-29 21:44:05 -05:00
Corey Butler
d76598d214 Merge branch 'master' of github.com:coreybutler/nvm-windows 2018-08-11 20:09:07 -05:00
Corey Butler
9fb1b77d38 Merge pull request #253 from jeffrson/master
Make sure file handle to 'node.exe' is closed after scanning for bytes
2018-08-11 20:07:40 -05:00
Corey Butler
dfd8e5a7fb Simplified build to leverage version number from generated executable." 2018-08-11 19:59:39 -05:00
Corey Butler
be7f20a68d Merge branch 'master' into master 2018-08-11 18:53:17 -05:00
Corey Butler
943cae19c4 Fixed line endings 2018-08-11 18:32:30 -05:00
Andreas Opferkuch
ebdd4d986f Fixes #41 - Issue with blank spaces in path
Forgot some uses of exec.Command() outside of the "use" command.
2018-08-03 18:55:12 +02:00
Andreas Opferkuch
44a2e1ddbe Fixes #41 - Issue with blank spaces in path
exec.Command() can't handle spaces, even when quoted.
Command has to be modified using SysProcAttr.
See also:
https://github.com/golang/go/issues/15566

Plus: Minor refactoring - reordering of functions, more consistent capitalization, sorting of imports and whatnot.
2018-08-03 18:55:12 +02:00
Corey Butler
256d69427b Updated URLs to support npm >= 6.2.0. Applied several PR's. Bumped to v1.1.7 2018-08-01 23:45:30 -05:00
Corey Butler
476e11d117 Merge pull request #222 from kylewuolle/issue-214
wildcard major version to latest X.y..z
2018-08-01 23:07:41 -05:00
Andreas Opferkuch
50cef2e6ae Fixes #252 - Need to manually remove folder on nvm uninstall
File handle when checking the architecture of the node executable was left open.
2018-05-21 18:33:17 +02:00
Jake Chitel
a9ed9fa895 removed extraneous time.Sleep() call 2018-01-19 12:58:16 -06:00
Jake Chitel
1b9d9aa058 Added exponential backoff for copying npm installation 2018-01-19 12:49:27 -06:00
Corey Butler
ce756027a8 Added npx support. Closes #288 2017-07-21 00:09:54 -05:00
Corey Butler
c6c5d2abc1 Clean symlinks 2017-07-15 13:30:17 -05:00
Corey Butler
58d157c2d8 Use filepath.join to escape whitespace 2017-07-15 10:19:01 -05:00
Corey Butler
506a57d42e filepath changes to resolve escaping issues. 2017-06-01 10:08:47 -05:00
Corey Butler
af79f5c207 Sort the output of installed versions using new semver library. Fixes #262. 2017-05-31 09:53:52 -05:00
Corey Butler
472411ed65 Replaced semver and updated logic to support newer node versioning logic. Closes #276 2017-05-31 08:40:50 -05:00
Corey Butler
63828304cb Fixes issue #268. 2017-05-10 18:14:55 -05:00
Graren
e0fe490393 Fixed comparison in exceeds latest
Tiny fix, I'm sure it can be beautified or refactored
2017-05-10 16:14:06 -04:00
Ulf Jaenicke-Rößler
a7294e25c3 Make sure file handle to 'node.exe' is closed after scanning for bytes 2017-03-13 16:49:35 +01:00
Corey Butler
5a235cad46 Version bump to support mirror fixes and rollback support. 2017-03-08 10:26:21 -06:00
ccccly
0467ddd7d7 Fix nvm node_mirror, npm_mirror doesn't work issue. 2017-03-05 16:55:59 +08:00
ccccly
8889f643de Add cleanup when download is interrupted by user. 2017-03-05 16:44:37 +08:00
Corey Butler
37c72c70c4 Added support for ignoring SSL validation. Fixed availability list. 2017-02-22 15:32:54 -06:00
Kyle Wuolle
7c45600072 wildcard major version to latest X.y..z
added check in install function so that if only the major version number is specified, the latest version of that will be installed

fixes 214
2016-11-06 12:09:44 -08:00
antxgit
8a673b24b4 Better parsing of settings.
Replacing prefix only if is in head of line.

Tested using below
nvm proxy http://username:password@cchproxy:8080 & nvm proxy

nvm proxy username:password@cchproxy:8080 & nvm proxy
nvm proxy http://proxy:10080 & nvm proxy
nvm proxy http://proxy:proxy@proxy:10080 & nvm proxy
nvm proxy proxy:10080 & nvm proxy

concerning  https://github.com/coreybutler/nvm-windows/issues/186
2016-10-27 10:31:58 -05:00
Corey Butler
fd7f7baf73 Merge pull request #218 from bblanchon/fix-swap-32-64
Fix "nvm use" swapping node32 and node64 even when not need (issue #134)
2016-10-27 10:27:48 -05:00
MizardX
d85935f2e1 Fix 32-bit message
Show message when requesting a 64-bit version that is only installed as
32-bit. Mirroring what is shown when requesting a 32-bit version that is
only installed as 64-bit.
2016-10-27 10:26:51 -05:00
Benoit Blanchon
902c41c6e0 Fix "nvm use" swapping node32 and node64 even when not need 2016-10-27 14:23:37 +02:00
Corey Butler
2c6ed843eb Added support for vX.X.X and removed option to open prompt after install. 2016-07-01 20:03:55 -05:00
Corey Butler
7a4544317a Cleaned up PR's, added formatting for ls, updated installer to 1.1.1 2016-07-01 19:34:56 -05:00
Corey Butler
a5053d2b1f Remove ToLower()
Fixes #90.
2016-06-04 15:49:28 -05:00
lijie371
5c8ace2e44 add npm/nodejs proxy support 2016-05-11 10:22:18 +08:00
Frederico Silva
d786051dd1 list available: show LTS and STABLE
load versions from https://nodejs.org/download/release/index.json
2016-04-24 12:31:03 +02:00
lijie371
39a1bea387 add node_mirror and npm_mirror config 2016-04-07 19:34:31 +08:00
Patrick Sullivan
0bc5644af4 fix: node v4 support works
fix: 'install latest' works
fix: current version arch works
2015-09-30 11:46:02 -07:00
Michael-Rainabba Richardson
85d8e9a21b Restructure to deal with new node release structure at http://nodejs.org/dist/
This is untested because the build chain isn't one I'm prepared to deal with.
2015-09-19 10:40:18 -07:00
Yong Zhao
1c398a4486 fix issues related to showing the arch of installed node 2015-08-04 15:07:36 -04:00
Eddie Huang
a1f6d41657 use new temp directory for npm
download and unzip npm in a temp directory under the nvm root. fix issue
#46
2015-03-19 19:02:04 +09:00
Romuald R.
ee3854475a Updated arch recognition for Windows 8.1 2015-03-14 20:15:34 +01:00
rahulroy9202
8603d35cb7 now checks if input version is greater than latest 2015-03-03 20:34:35 +05:30
rahulroy9202
e6fdca74b9 now checks if input version is greater than latest 2015-03-03 20:26:58 +05:30
rahulroy9202
b4b809c9cd now checks if input version is greater than latest 2015-03-03 19:29:21 +05:30
rahulroy9202
0265573bc6 now checks if input version is greater than latest 2015-03-03 19:22:07 +05:30
Corey Butler
494d7f506f Version bump 2014-10-23 14:12:25 -05:00
Corey Butler
d92e0b82de Updated settings file to use NVM_HOME env var. 2014-10-23 14:11:01 -05:00
Corey Butler
20cf5aeeb7 Added ls->list and v->version aliases. 2014-10-15 13:38:03 -05:00