How to make create-react-app use npm instead of yarn? How to make create-react-app use npm instead of yarn? reactjs reactjs

How to make create-react-app use npm instead of yarn?


You can either

1) Remove yarn.lock, and running npm i,

or

2) Run create-react-app app --use-npm


I dont know if this helps. But I was having the same problem and did this

npx expo-cli init --npm

and it installed with npm

hope this helps you or someone in the future


  1. Install create-react-app npm i -g create-react-app --use-npm
  2. Go to desired path using cd command
  3. Add --use-npm create-react-app my-app-name --use-npmThis command will create a folder with the name that you mentioned inside your current path . This folder consists all necessary configuration files needed for a starter code for react application