1. 调试器日志:
\1. Clear watchman watches: watchman watch-del-all
\2. Delete node_modules: rm -rf node_modules and run yarn install
\3. Reset Metro's cache: yarn start --reset-cache
\4. Remove the cache: rm -rf /tmp/metro-*
2. reset.sh
!#/bin/bash
watchman watch-del-all
rm -rf ./node_modules
yarn install
yarn start --reset-cache
rm -rf /tmp/metro-*
网友评论