Skip to content
This repository has been archived by the owner on Dec 24, 2018. It is now read-only.

Commit

Permalink
Alias node to iojs
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jan 18, 2015
1 parent de24de1 commit 98b9c9a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions alias-node.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:: Created by nvmw, please don't edit manually.
@IF EXIST "%~dp0\iojs.exe" (
"%~dp0\iojs.exe" %*
) ELSE (
iojs %*
)
6 changes: 5 additions & 1 deletion nvmw.bat
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ mkdir "%NODE_HOME%"

echo Start installing %NODE_TYPE%/%NODE_VERSION% (x%OS_ARCH%) to %NODE_HOME%

set "NODE_EXE_FILE=%NODE_HOME%\node.exe"
set "NODE_EXE_FILE=%NODE_HOME%\%NODE_TYPE%.exe"
set "NPM_ZIP_FILE=%NODE_HOME%\npm.zip"

if not exist "%NODE_EXE_FILE%" (
Expand All @@ -126,6 +126,10 @@ if not exist "%NODE_EXE_FILE%" (
echo Download %NODE_EXE_FILE% from %NODE_EXE_URL% failed
goto install_error
) else (
if %NODE_TYPE% == iojs (
copy "%NVMW_HOME%\alias-node.cmd" "%NODE_HOME%\node.cmd"
)

echo Start install npm

"%NODE_EXE_FILE%" "%NVMW_HOME%\get_npm.js" "%NODE_HOME%" "%NODE_TYPE%/%NODE_VERSION%"
Expand Down

0 comments on commit 98b9c9a

Please sign in to comment.