Expo sdk upgrade error

Please provide the following:

  1. SDK Version:35.0.0
  2. Platforms(Android/iOS/web/all): all
  3. Expo-cli Version : 3.27.10
  4. Node Version : 12.18.4
  5. NPM Version : 6.14.6

I am upgrade expo SDK 35.0.0 to 39.0.0 it’s show below error.

Failed to install expo package with error: npm exited with non-zero code: 1
npm exited with non-zero code: 1
Error: npm exited with non-zero code: 1
at ChildProcess.completionListener (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
at Object.onceWrapper (events.js:422:26)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

at Object.spawnAsync [as default] (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
at NpmPackageManager._runAsync (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/package-manager/src/NodePackageManagers.ts:157:31)
at NpmPackageManager.addAsync (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/package-manager/src/NodePackageManagers.ts:100:18)
at upgradeAsync (/usr/local/lib/node_modules/expo-cli/src/commands/upgrade.ts:500:7)
at /usr/local/lib/node_modules/expo-cli/src/commands/upgrade.ts:784:7
at Command. (/usr/local/lib/node_modules/expo-cli/src/exp.ts:302:7)

Hey @ronak,

Have you been able to upgrade yet? If not, can you try updating to cli version 3.27.12 to see if that resolves it?

Cheers,
Adam

I update expo-cli but when I use expo command so it’s show bellow error:
Macmini05s-Mac-mini:~ macmini05$ expo-cli -V
internal/modules/cjs/loader.js:968
throw err;
^

Error: Cannot find module ‘@expo/bunyan’
Require stack:

  • /usr/local/lib/node_modules/expo-cli/node_modules/@expo/xdl/build/detach/Logger.js
  • /usr/local/lib/node_modules/expo-cli/node_modules/@expo/xdl/build/detach/IosIPABuilder.js
  • /usr/local/lib/node_modules/expo-cli/node_modules/@expo/xdl/build/xdl.js
  • /usr/local/lib/node_modules/expo-cli/build/exp.js
  • /usr/local/lib/node_modules/expo-cli/bin/expo.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at _bunyan (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/xdl/build/detach/Logger.js:10:39)
    at new Logger (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/xdl/build/detach/Logger.js:63:22)
    at Object. (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/xdl/build/detach/Logger.js:134:22)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32) {
    code: ‘MODULE_NOT_FOUND’,
    requireStack: [
    ‘/usr/local/lib/node_modules/expo-cli/node_modules/@expo/xdl/build/detach/Logger.js’,
    ‘/usr/local/lib/node_modules/expo-cli/node_modules/@expo/xdl/build/detach/IosIPABuilder.js’,
    ‘/usr/local/lib/node_modules/expo-cli/node_modules/@expo/xdl/build/xdl.js’,
    ‘/usr/local/lib/node_modules/expo-cli/build/exp.js’,
    ‘/usr/local/lib/node_modules/expo-cli/bin/expo.js’
    ]
    }

I’m having the same problem as the others.

hi there! it sounds like maybe there is an issue on your machines. try reinstalling the latest expo-cli: npm i -g expo-cli

I upgrade expo-cli to 3.27.13 still I can not update SDK version.
show error “Failed to install expo package with error: npm exited with non-zero code: 1”