how to configure using environment variables #6566
Replies: 2 comments
-
Hey there, You have to prefix the config vars with Hope this helps ^^ |
Beta Was this translation helpful? Give feedback.
-
For those that have had difficulty working out how to set command-line options (or even the prefix mentioned above), it appears the pnpm documentation is based on the npm documentation, except the two paragraphs that tell you how to do it are missing from the pnpm version. https://docs.npmjs.com/cli/v11/using-npm/config#command-line-flags has the information, and could probably do with being added to the pnpm documentation as well 🙂 |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm trying to figure out how to configure pnpm using environment variables, I've checked the documentation and it seems possible:
but it is not very clear how to achieve this, I suppose that as in
npm
, all configs will be prefixed, so forstore-dir
will becomepnpn_config_store_dir
, but that did not seems to work, what is the correct format to configure pnpm using env variables and what configs can be change using this method?what I want to achieve is to configure pnpm to not move anything that writes into disk to
/tmp/.pnpm
folderI also tried adding all of those as command line arguments, but discovered that
global-bin-dir
andstate-dir
are treated as unknown arguments by the cliThanks.
Beta Was this translation helpful? Give feedback.
All reactions