LoginSignup
2
3

More than 5 years have passed since last update.

[ReactNative]シミュレータが動かない時にやってみるといいことメモ

Last updated at Posted at 2017-08-17
  • ReactNativeのアプリをシミュレータで動かしていると、突然原因不明のエラーで動かなくなることが多々ある
  • そんな時にとりあえず試してみるといいんじゃないかということをメモしていく
  1. node_modulesを一旦削除してインストールし直す

    rm -rf node_modules
    npm install
    
  2. キャッシュを消す

    rm -rf ~/.rncache
    
  3. Rebootする(iPhoneのみ)

    Simulatorのメニューから「Hardware」 -> 「Reboot」
    
  4. npmのキャッシュを消す

    npm cache clean
    
2
3
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
2
3