pnpm

pnpm create

1
2
3
4
5
6
7
Usage: pnpm create <name>
pnpm create <name-without-create>
pnpm create <@scope>

Creates a project from a `create-*` starter kit.

Visit https://pnpm.io/6.x/cli/create for documentation about this command.

此命令相当于 npm init 命令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Create a package.json file

Usage:
npm init [--force|-f|--yes|-y|--scope]
npm init <@scope> (same as `npx <@scope>/create`)
npm init [<@scope>/]<name> (same as `npx [<@scope>/]create-<name>`)

Options:
[-y|--yes] [-f|--force]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root]

aliases: create, innit

Run "npm help init" for more info

npx 命令

npx 使用

workspace

使用此功能来实现多包管理。
参考