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

pnpm@7 and create-turbo@latest #1190

@kvernon

Description

@kvernon

What version of Turborepo are you using?

latest

What package manager are you using / does the bug impact?

pnpm

What operating system are you using?

Mac

Describe the Bug

I've never used turborepo, so I thought I'd try the getting starting entry, well... running fails for pnpm@7.

I have on my box:

$ npm -g ls
/Users/me/.nvm/versions/node/v16.13.2/lib
├── @microsoft/rush@5.68.0
├── corepack@0.10.0
├── npm@8.1.2
├── nx@14.0.5
├── pnpm@7.0.0
└── typescript@4.6.4
$ npx create-turbo@latest

>>> TURBOREPO

>>> Welcome to Turborepo! Let's get you set up with a new codebase.

? Where would you like to create your turborepo? turbo-03
? Which package manager do you want to use? pnpm

>>> Creating a new turborepo with the following:

 - apps/web: Next.js with TypeScript
 - apps/docs: Next.js with TypeScript
 - packages/ui: Shared React component library
 - packages/config: Shared configuration (ESLint)
 - packages/tsconfig: Shared TypeScript `tsconfig.json`

    Installing dependencies...
Aborting installation.
  pnpm install --registry=https://registry.npmjs.org/ has failed.

I will also call out that if I try running:

$ pnpm -g ls
Legend: production dependency, optional only, dev only

/Users/me/Library/pnpm/global/5

dependencies:
nx 14.0.5
typescript 4.6.4
{machinename}:scratch-pad me$ pnpx create-turbo@latest
Packages: +160
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /Users/me/Library/pnpm/store/v3
  Virtual store is at:             .pnpm
Progress: resolved 160, reused 160, downloaded 0, added 160, done

/private/var/folders/w8/h8q2_7l960v4y9nt4lb75g3jj212w9/T/dlx-96755/5:
+ create-turbo 1.2.6

>>> TURBOREPO

>>> Welcome to Turborepo! Let's get you set up with a new codebase.

? Where would you like to create your turborepo? turbo-04
? Which package manager do you want to use? pnpm

>>> Creating a new turborepo with the following:

 - apps/web: Next.js with TypeScript
 - apps/docs: Next.js with TypeScript
 - packages/ui: Shared React component library
 - packages/config: Shared configuration (ESLint)
 - packages/tsconfig: Shared TypeScript `tsconfig.json`

    Installing dependencies...
Aborting installation.
  pnpm install --registry=https://registry.npmjs.org/ has failed.

Expected Behavior

I would expect the create-turbo@latest to complete without this issue:

Aborting installation.
  pnpm install --registry=https://registry.npmjs.org/ has failed.

To Reproduce

To repoduce, I would say from the examples above, it's easy peasy by following the create-turbo@latest's questions.

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