yarnpkg exited with non-zero code: 1 expo code example

Example 1: Failed to install expo package with error: yarnpkg exited with non-zero code: 1 yarnpkg exited with non-zero code: 1

remove this line from package.json

"react-native": "https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz"

now remove node_modules

now:

yarn install 

now add that line back in package.json

again

yarn install

now if it succeeds, do a

expo upgrade

Example 2: Failed to install expo package with error: yarnpkg exited with non-zero code: 1 yarnpkg exited with non-zero code: 1

in your package.json

"react-native": "https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz"


set the sdk version to lastest one right now the current one is sdk-39.0.3

after that just do 

npm install