Home > Mobile >  In react native i cant able to create new project
In react native i cant able to create new project

Time:08-25

npx react-native init AwesomeProject is not working in MAC m1 chip. I am getting this below error.

enter image description here

Node version - 18.6.0 npx version - 8.13.2

CodePudding user response:

You have to remove the current react-native library and install the new one.

Following set of commands will work

  • npm uninstall -g react-native-cli
  • npm uninstall -g react-native
  • npm install -g react-native
  • npm upgrade -g

CodePudding user response:

npx react-native init sample --legacy-peer-deps
  • Related