pnpm create
从 create-* 或 @foo/create-* 启动模板创建一个项目。
🌐 Create a project from a create-* or @foo/create-* starter kit.
示例
🌐 Examples
pnpm create react-app my-app
选项
🌐 Options
--allow-build
新增于:v10.2.0
🌐 Added in: v10.2.0
允许在安装期间运行安装后脚本的软件包名称列表。
🌐 A list of package names that are allowed to run postinstall scripts during installation.
安全与信任政策
🌐 Security and trust policies
自 v11.0.0 起,pnpm create 在解析和获取入门套件时会遵循项目级别的安全和信任策略设置 —— minimumReleaseAge(及其 Exclude/Strict 组件)和 trustPolicy(及其 Exclude/IgnoreAfter 组件)。
🌐 Since v11.0.0, pnpm create honors the project-level security and trust policy settings — minimumReleaseAge (and its Exclude/Strict companions) and trustPolicy (and its Exclude/IgnoreAfter companions) — when resolving and fetching the starter kit.