0
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?

React Native バージョン管理

Last updated at Posted at 2025-04-24

エラー内容:バージョンがあってない・・・
error This project's package.json defines "packageManager": "yarn@4.2.2". However the current global version of Yarn is 1.22.22.

Node.js 16.9以上なら、corepack という仕組みで簡単にバージョン管理できる!

corepack enable

(yarn や pnpm などのパッケージマネージャーのバージョンを簡単に管理できるツール
Node.js に 最初から内蔵されてるよ(バージョン 14.19 / 16.9 以降))

プロジェクトの packageManager: "yarn@4.2.2" に合わせるには:

corepack prepare yarn@4.2.2 --activate
yarn -v
yarn install

※yarn install は、React(またはReact Native)などのプロジェクトでよく使う、依存パッケージをまとめてインストールするコマンド

0
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
0
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?