본문으로 건너뛰기
버전: 10.x

pnpm config

Aliases: c

구성 파일들을 관리하기

The configuration files are in INI (the global) and YAML (the local) formats.

The local configuration file is located in the root of the project and is named pnpm-workspace.yaml.

전역 구성 파일은 다음 위치중 한 곳에 위치하게 됩니다.

  • If the $XDG_CONFIG_HOME env variable is set, then $XDG_CONFIG_HOME/pnpm/rc
  • On Windows: ~/AppData/Local/pnpm/config/rc
  • On macOS: ~/Library/Preferences/pnpm/rc
  • On Linux: ~/.config/pnpm/rc

Commands

set <key> <value>

Config key를 제공된 value로 설정하십시오.

get <key>

제공된 key의 config value를 출력하십시오.

delete <key>

구성 파일에서 config key를 지웁니다.

list

모든 구성 설정 표시하기

옵션

--global, -g

전역 설정 파일에서 구성을 설정 하십시오.

--location

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.

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

--json

모든 구성 설정을 JSON 형식으로 표시합니다.