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

Turbo CLI doesn't respect NPM choice #150

@johncburnette

Description

@johncburnette

What version of Turbrepo are you using?

Latest via npx

Describe the Bug

The template used by the turbo CLI does not respect the NPM choice when using npx create-turbo@latest. The commands in the package.json are yarn commands. This would work if you had Yarn installed but is unusable if you do not use Yarn. More so, if you choose NPM as your package manager, this file should respect that and also use NPM.

Here is a screenshot of the console and the package.json file it generated:
image

Expected Behavior

The package.json file should be using whatever package manager you choose during the prompts from the CLI.

To Reproduce

  1. Create a new repo via npx create-turbo@latest
  2. Select NPM as the package manager option
  3. Wait for the project to be created and follow the prompts for development
  4. You should see an error stating sh: yarn: command not found if you do not have yarn installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions