Skip to content

Commit

Permalink
Support Node.js >= 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Sep 9, 2015
1 parent 80a504b commit f652299
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nvmw.bat
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,18 @@ if %NODE_TYPE% == iojs (
) else (
set NODE_EXE_URL=%NVMW_IOJS_ORG_MIRROR%/%NODE_VERSION%/win-x64/iojs.exe
)
) else (
) else if %NODE_VERSION:~0,1% == 0 (
if %ARCH% == x32 (
set NODE_EXE_URL=%NVMW_NODEJS_ORG_MIRROR%/%NODE_VERSION%/node.exe
) else (
set NODE_EXE_URL=%NVMW_NODEJS_ORG_MIRROR%/%NODE_VERSION%/x64/node.exe
)
) else (
if %ARCH% == x32 (
set NODE_EXE_URL=%NVMW_NODEJS_ORG_MIRROR%/%NODE_VERSION%/win-x86/node.exe
) else (
set NODE_EXE_URL=%NVMW_NODEJS_ORG_MIRROR%/%NODE_VERSION%/win-x64/node.exe
)
)

set "NODE_HOME=%NVMW_HOME%%NODE_VERSION%"
Expand Down

0 comments on commit f652299

Please sign in to comment.