3
1

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 5 years have passed since last update.

ReactNativeでreact-native run-iosが効かなくなる

Posted at

ReactNativeを改めて始めていた中で、
react-native init SampleReactNativeで作成したプロジェクト内で、
何個かnpmモジュールをインストールしていたところ、
いざ試そうとreact-native run-iosを実行したら以下のエラーが、

error

 Command 'run-ios' unrecognized. Make sure that you have run 'npm install' and that you are inside a react-native project.

react-native init して作成したプロジェクトなのに、
なぜ実行できなくなるんだと、
色々調べていたところ、以下のコマンドで対応できました。

 npm i

素直にnpmのインストールし直したってことでしょうか。
以下の類似のissueが参考になりました。

When Running react-native run-android inside example folder, throwing error in console

3
1
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?