简体   繁体   中英

I want to start with react native without expo method.. i found this error

当我尝试在原始设备上运行我的应用程序时出现此错误,一切都根据 react-native 文档

Try running your app with the yarn command, otherwise run npm-doctor to make sure all your packages are updated and fixed.

otherwise try installing dependencies for expo using :

npm install -g yarn
yarn add global react-native
yarn add global react-native-cli
react-native init sample

here's a quick link to the npm-doctor documentation:

Also here's some tutorial on running react-native app using yarn command:

I find this solution .. i just replace 6.2 with 6.3

in android/gradle/ gradle-wrapper.properties

distributionUrl=https://services.gradle.org/distributions/gradle-6.3-all.zip

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM