已采納回答 / 今朝
但是有一點,在刪除了全局的react-native-cli后,就不能直接執(zhí)行react-native 命令了,比如說react-native run-ios react-native run-android,需要在前面加上yarn或者npxyarn react-native run-iosnpx react-native run-iosandroid同理
講師回答 / 今朝
但是有一點,在刪除了全局的react-native-cli后,就不能直接執(zhí)行react-native 命令了,比如說react-native run-ios react-native run-android,需要在前面加上yarn或者npxyarn react-native run-iosnpx react-native run-iosandroid同理