React-Native搭建环境 TypeError: cli.init is not a function 用户9831953098046 2022-11-09 290 阅读1分钟 React-Native搭建环境 TypeError: cli.init is not a function 解决方案: 1、删除react-native:npm uninstall -g react-native-cli 2、重新安装:yarn add react-native --exact 3、新建项目:react-native init project