Перейти к основному содержимому
Версия: 7.x

pnpm server

Управляет сервером хранилища.

Команды​

pnpm server start​

Starts a server that performs all interactions with the store. Other commands will delegate any store-related tasks to this server.

pnpm server stop​

Останавливает сервер хранилища.

pnpm server status​

Отображает информацию о текущем запущенном сервере.

Опции​

--background​

  • По умолчанию: false
  • Тип: Boolean

Runs the server in the background, similar to daemonizing on UNIX systems.

--network-concurrency​

  • По умолчанию: null
  • Тип: Number

The maximum number of network requests to process simultaneously.

--protocol​

  • По умолчанию: auto
  • Тип: auto, tcp, ipc

Протокол связи, используемый сервером. When this is set to auto, IPC is used on all systems except for Windows, which uses TCP.

--port​

  • По умолчанию: 5813
  • Тип: Number (номер порта)

The port number to use when TCP is used for communication. If a port is specified and the protocol is set to auto, regardless of system type, the protocol is automatically set to use TCP.

--store-dir​

  • По умолчанию: <home>/.pnpm-store
  • Тип: путь

The directory to use for the content addressable store.

--[no-]lock​

  • По умолчанию: false
  • Тип: Boolean

Set whether to make the package store immutable to external processes while the server is running or not.

--ignore-stop-requests​

  • По умолчанию: false
  • Тип: Boolean

Prevents you from stopping the server using pnpm server stop.

--ignore-upload-requests​

  • По умолчанию: false
  • Тип: Boolean

Prevents creating a new side effect cache during install.