RN安装:
1,brew版本问题,brew权限问题;
sudo chown -R [XXXX] /usr/local/
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2,node版本问题,链接问题;
brew uninstall node
brew install node
rm -fr /usr/local/node/
brew link node
rm '/usr/local/include/node/libplatform/libplatform.h'
brew link --overwrite node
brew link --overwrite --dry-run node
3,RN 配置相关问题
1,NO bundle URL present
解决办法:
npm install
react-native run-ios
2,ENOENT: no such file or directory, uv_cwd
A:查看npm start 是否能正确启动,若报错具体原因具体分析;
B:是否开启多个服务;







网友评论