Skip to content Skip to sidebar Skip to footer

Failed To Install Expo Package With Error: Yarnpkg Exited With Non-zero Code: 1 Yarnpkg Exited With Non-zero Code: 1

Im currently trying to update my Expo SDK from 36.0.0 to atleast 37.0.0 with the command expo update however im getting the error: × Failed to install expo package with error: y

Solution 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

I solved after 2 days

Solution 2:

By any chance is this a monorepo? I ran into this error because I accidentally upgrade expo in the root folder

Solution 3:

I ran yarn install (npm install should do the same thing.) in my project folder first. Then expo upgrade command worked.

Solution 4:

I ran yarn install (npm install should do the same thing.) in my project folder first. Then expo upgrade command worked.

Solution 5:

just install expo-notifications using normal package installation as below instead of expo install expo-notifications use

npm i expo-notifications

Post a Comment for "Failed To Install Expo Package With Error: Yarnpkg Exited With Non-zero Code: 1 Yarnpkg Exited With Non-zero Code: 1"