diff options
Diffstat (limited to 'deps/npm/bin/npx')
-rw-r--r-- | deps/npm/bin/npx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/npm/bin/npx b/deps/npm/bin/npx index a49c608bab..261e339850 100644 --- a/deps/npm/bin/npx +++ b/deps/npm/bin/npx @@ -12,18 +12,19 @@ if ! [ -x "$NODE_EXE" ]; then NODE_EXE=node fi +NPM_CLI_JS="$basedir/node_modules/npm/bin/npm-cli.js" NPX_CLI_JS="$basedir/node_modules/npm/bin/npx-cli.js" case `uname` in *MINGW*) - NPM_PREFIX=`"$NODE_EXE" "$NPX_CLI_JS" prefix -g` + NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g` NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js" if [ -f "$NPM_PREFIX_NPX_CLI_JS" ]; then NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS" fi ;; *CYGWIN*) - NPM_PREFIX=`"$NODE_EXE" "$NPX_CLI_JS" prefix -g` + NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g` NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js" if [ -f "$NPM_PREFIX_NPX_CLI_JS" ]; then NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS" |