Skip to content

Commit db8ef3e

Browse files
authored
Document default of --location for pnpm config
1 parent c094dc2 commit db8ef3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/cli/config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Set the configuration in the global config file.
4444

4545
### --location
4646

47+
By default, `--location` is set to `global`.
48+
4749
When set to `project`, the `.npmrc` file at the nearest `package.json` will be used. If no `.npmrc` file is present in the directory, the setting will be written to a `pnpm-workspace.yaml` file.
4850

4951
When set to `global`, the performance is the same as setting the `--global` option.

0 commit comments

Comments
 (0)