React Native 搭建环境遇到的问题

一:Mac下Homebrew 安装node

warning: The post-install step did not complete successfully You can try again using “brew postinstall node ”
输入 brew postinstall node
输入 Error: Permission denied - /usr/local/lib/node_modules/npm/AUTHORS
解决的方式
sudo chown -R $(whoami):admin /usr/local/lib/node_modules/

二:创建项目执行react-native run-ios

Failed to install the requested application An application bundle was not found at the provided path. Provide a valid path to the desired application bundle. Print: Entry, ":CFBundleIdentifier", Does Not Exist Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/ReactNativexx.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist
解决的方式
新建项目指定版本:
用--version参数创建指定版本的项目。例如react-native init DemoApp --version 0.44.3注意版本号必须精确到两个小数点。
项目创建好之后:执行:react-native run-ios

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容