npm.cmd 483 B

12345678910111213141516171819
  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. FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_CLI_JS%" prefix -g') DO (
  10. SET "NPM_PREFIX_NPM_CLI_JS=%%F\node_modules\npm\bin\npm-cli.js"
  11. )
  12. IF EXIST "%NPM_PREFIX_NPM_CLI_JS%" (
  13. SET "NPM_CLI_JS=%NPM_PREFIX_NPM_CLI_JS%"
  14. )
  15. "%NODE_EXE%" "%NPM_CLI_JS%" %*