React-native 报错总结

npm watchman watch-del-all            
npm rm -rf node_modules && npm install       
npm rm -rf /tmp/metro-bundler-cache-*       
npm start -- --reset-cache                     
npm rm -rf /tmp/haste-map-react-native-packager-*    

以上命令用来解决以下变红错误提示

Clear watchman watches: watchman watch-del-all.
Delete the node_modules folder: rm -rf node_modules && npm install.
Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache.
Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.

猜你喜欢

转载自blog.csdn.net/chali1314/article/details/126194215