RN无法解析新安装模块的解决方法
2021-01-06 本文已影响0人
JohnYuCN
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-*