An error was reported when the react-native project started run-ios

the four methods in the picture do not work even if they have been tried. Both command line startup and Xcode startup report the same error. Use the example from the official home page react-native init AwesomeProject


try, yarn install is not very stable, cnpm install ok,npm install can not delete the dependency and then try


the following steps are recommended for this problem:

  1. clear the npm package on this computer
  2. Uninstall npm
  3. Uninstall node
  4. reinstall node npm and recreate the project
Menu