I am using react native and Expo. I am unable to build new app because after I use expo init appName it shows the following error.
Heres the full message:
📦 Using npm to install packages. You can pass --yarn to use Yarn instead.
√ Downloaded and extracted project files.
× Something when wrong installing JavaScript dependencies. Check your npm logs. Continuing to initialize the app.
✅ Your project is ready!
To run your project, navigate to the directory and run one of the following npm commands.
- cd Scanner
- npm start # you can open iOS, Android, or web from here, or run them directly with the commands below.
- npm run android
- npm run ios # requires an iOS device or macOS for access to an iOS simulator
- npm run web
I tried multiple times to create a blank project, also tried npm install to install failed/not downloaded libraries and continue after failure but it showed another error:
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! zlib: unexpected end of file
also tried npm cache verify that showed cache is ok Content verified: 3562 (252580364 bytes).
So, How can I solve this issue?
npm install -g npm && npm install -g expo-clireinstalled and created new app but the issue persisted.npm doctorshowsnode -v v12.13.1 Use node v12.18.1in red all other message in white color and usingexpo doctorshows this error:Error: could not load config json at G:\Work\React Native\Scanner: ConfigError: Cannot determine which native SDK version your project uses because the moduleexpo` is not installed. Please install it withyarn add expoand try again.` Although expo is installed and can create app with titled issue.