npx.cmd 539 B

1234567891011121314151617181920
  1. :: Created by npm, please don't edit manually.
  2. @ECHO OFF
  3. SETLOCAL
  4. SET "NODE_EXE=%~dp0\node.exe"
  5. IF NOT EXIST "%NODE_EXE%" (
  6. SET "NODE_EXE=node"
  7. )
  8. SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js"
  9. SET "NPX_CLI_JS=%~dp0\node_modules\npm\bin\npx-cli.js"
  10. FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_CLI_JS%" prefix -g') DO (
  11. SET "NPM_PREFIX_NPX_CLI_JS=%%F\node_modules\npm\bin\npx-cli.js"
  12. )
  13. IF EXIST "%NPM_PREFIX_NPX_CLI_JS%" (
  14. SET "NPX_CLI_JS=%NPM_PREFIX_NPX_CLI_JS%"
  15. )
  16. "%NODE_EXE%" "%NPX_CLI_JS%" %*