Skip to content

Instantly share code, notes, and snippets.

@coreybutler
Created July 16, 2015 21:27
Show Gist options
  • Select an option

  • Save coreybutler/e1258e4839430a542f0c to your computer and use it in GitHub Desktop.

Select an option

Save coreybutler/e1258e4839430a542f0c to your computer and use it in GitHub Desktop.
Files for issue #62 (NVM for Windows)
#!/bin/sh
(set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix
basedir=`dirname "$0"`
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node.exe" ]; then
"$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
else
node "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
fi
:: Created by npm, please don't edit manually.
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\.\node_modules\npm\bin\npm-cli.js" %*
) ELSE (
node "%~dp0\.\node_modules\npm\bin\npm-cli.js" %*
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment