Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

expo upgrade fails with yarn. Package-Manager searches for yarnpkg. #1455

@yreifschneider

Description

@yreifschneider

Description

When running expo upgrade to ugrade my expo project to the newest version, the command failes installing packages via yarn.

Expected Behavior

I expected expo upgrade to work properly with yarn.

Observed Behavior

expo upgrade fails with the following error message:

Installing the expo package...

> yarn add expo@^36.0.0
spawn yarnpkg ENOENT
Set EXPO_DEBUG=true in your env to view the stack trace.

Environment

% expo diagnostics

  Expo CLI 3.11.7 environment info:
    System:
      OS: macOS 10.15.2
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.13.1 - /opt/local/bin/node
      Yarn: 1.19.2 - /opt/local/bin/yarn
      npm: 6.13.4 - /opt/local/bin/npm
    IDEs:
      Xcode: 11.3/11C29 - /usr/bin/xcodebuild
    npmPackages:
      @types/expo: ^32.0.0 => 32.0.7 
      @types/react: ^16.8.23 => 16.9.5 
      @types/react-native: ^0.57.65 => 0.57.65 
      @types/react-navigation: ^3.0.1 => 3.0.5 
      expo: ^35.0.0 => 35.0.0 
      react: 16.8.3 => 16.8.3 
      react-native: https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz => 0.59.8 
      react-navigation: ^3.11.1 => 3.11.1 

Reproducible Demo

Run expo upgrade on a Mac with yarn installed via MacPorts.

The issue is, that Package-Manager tries to spawn yarn via the yarnpkg executable name. I have yarn installed via MacPorts and it does not have a yarnpkg executable, but only yarn without pkg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions