infoMore than 5 years have passed since last update.
[ReactNative]シミュレータが動かない時にやってみるといいことメモ
Last updated at Posted at 2017-08-17
- ReactNativeのアプリをシミュレータで動かしていると、突然原因不明のエラーで動かなくなることが多々ある
- そんな時にとりあえず試してみるといいんじゃないかということをメモしていく
-
node_modulesを一旦削除してインストールし直す
rm -rf node_modules
npm install
-
キャッシュを消す
-
Rebootする(iPhoneのみ)
Simulatorのメニューから「Hardware」 -> 「Reboot」
-
npmのキャッシュを消す
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
What you can do with signing up