yarn global remove react-native
yarn global remove react-native-cli
yarn global add react-native@0.68.2
yarn global add react-native-cli
react-native init FoodDeliveryApp --template react-native-template-typescript
/.config/yarn/global/node_modules/react-native-cli/index.js:302 cli.init(root, projectName); ^ TypeError: cli.init is not a function at run (/Users/yong/.config/yarn/global/node_modules/react-native-cli/index.js:302:7) at createProject (/Users/yong/.config/yarn/global/node_modules/react-native-cli/index.js:249:3) at init (/Users/yong/.config/yarn/global/node_modules/react-native-cli/index.js:200:5) at Object.<anonymous> (/Users/yong/.config/yarn/global/node_modules/react-native-cli/index.js:153:7) at Module._compile (node:internal/modules/cjs/loader:1112:14) at Module._extensions..js (node:internal/modules/cjs/loader:1166:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:834:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 Node.js v18.5.0