美文网首页
RN无法解析新安装模块的解决方法

RN无法解析新安装模块的解决方法

作者: JohnYuCN | 来源:发表于2021-01-06 22:54 被阅读0次

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-*

相关文章

网友评论

      本文标题:RN无法解析新安装模块的解决方法

      本文链接:https://www.haomeiwen.com/subject/kbfaoktx.html