这是indexloc提供的服务,不要输入任何密码
Skip to content

📚 Docs: Adding Turborepo to your repository doesn't explicitly state you need a pnpm-workspace.yaml file #10099

@Tigatok

Description

@Tigatok

What is the improvement or update you wish to see?

When following the docs to add turborepo to an existing repository, the first step is to run
pnpm add turbo --save-dev --workspace-root

I ran that, but the command failed because I did not have an existing pnpm-workspace.yaml file. I understand this is likely trivial, but may be worth it to add a note, or pre-requisite that states you need that file set up.

 pnpm add turbo --save-dev --workspace-root
 ERROR  --workspace-root may only be used inside a workspace

Is there any context that might help us understand?

See above, pretty straightforward.

Does the docs page already exist? Please link to it.

https://turbo.build/repo/docs/getting-started/add-to-existing-repository#adding-turborepo-to-your-repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions