1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

create-turboで新規プロジェクトを作成する場合に、npmが選択できない場合の対処法

Posted at

Turborepoを使ってモノリポのプロジェクトを作成使用した。
すると、使用したいパッケージマネージャーを選択する時に、npmnot installedと表示され、選択することができない問題が発生した。

% 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? ./new-turborepo
? Which package manager do you want to use? 
  - npm (not installed)
  pnpm 
❯ yarn  

turboのリポジトリで同じような問題が発生していることが書かれたIssueを見つけた。

2023年4月14日現在において最新バージョンである1.9.1で発生しているようだ。

そこで、@latestから、@1.8.8に変更してコマンドを実行した。
すると、今度はnpmが選択できるようになっていた。

% npx create-turbo@1.8.8

>>> TURBOREPO

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

? Where would you like to create your turborepo? ./new-turborepo
? Which package manager do you want to use? (Use arrow keys)
❯ npm 
  - pnpm (not installed)
  yarn 

同じような問題に遭遇している方がいる場合、最新版ではなく1.8.8create-turboを使用することをお勧めする。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?