一: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