Skip to content

Commit afd494a

Browse files
authored
Document default of --location for pnpm config (#706)
1 parent e0e1629 commit afd494a

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
@@ -88,6 +88,8 @@ Set the configuration in the global config file.
8888

8989
### --location
9090

91+
By default, `--location` is set to `global`.
92+
9193
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.
9294

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

0 commit comments

Comments
 (0)