.npmrc 1.2 KB

12345678910111213141516171819202122
  1. # Rush uses this file to configure the NPM package registry during installation. It is applicable
  2. # to PNPM, NPM, and Yarn package managers. It is used by operations such as "rush install",
  3. # "rush update", and the "install-run.js" scripts.
  4. #
  5. # NOTE: The "rush publish" command uses .npmrc-publish instead.
  6. #
  7. # Before invoking the package manager, Rush will copy this file to the folder where installation
  8. # is performed. The copied file will omit any config lines that reference environment variables
  9. # that are undefined in that session; this avoids problems that would otherwise result due to
  10. # a missing variable being replaced by an empty string.
  11. #
  12. # * * * SECURITY WARNING * * *
  13. #
  14. # It is NOT recommended to store authentication tokens in a text file on a lab machine, because
  15. # other unrelated processes may be able to read the file. Also, the file may persist indefinitely,
  16. # for example if the machine loses power. A safer practice is to pass the token via an
  17. # environment variable, which can be referenced from .npmrc using ${} expansion. For example:
  18. #
  19. # //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
  20. #
  21. registry=https://registry.npmjs.org/
  22. always-auth=false