Skip to content

EAS Build - Error: "Could not parse JSON returned from "npm pack expo-template-bare-minimum@sdk-44 --dry-run" #1128

Description

@JeroenSchrader

Build/Submit details page URL

https://expo.dev/accounts/wellgear/projects/wellgear-app-v2/builds/8c818a86-3c84-4842-bfcf-3869532461fb

Summary

I get an error during the Prebuild step while trying to build my iOS and Android apps via EAS Build:

[stderr] [06:04:27] Error downloading and extracting template package: Error: Could not parse JSON returned from "npm pack expo-template-bare-minimum@sdk-44 --dry-run".
[stderr] 
[stderr] expo-template-bare-minimum-44.0.11.tgz
[stderr] 
[stderr] Error: Unexpected token e in JSON at position 0
[stderr] [06:04:27] ENOENT: no such file or directory, stat '/tmp/497787b540ef68edaf56d2a4240d45f3/android'
- Creating native project directories (./ios and ./android) and updating .gitignore
- Creating native project directories (./ios and ./android) and updating .gitignore
✖ Failed to create the native project.
[06:04:27] You may want to delete the `./ios` and/or `./android` directories before trying again.
bash exited with non-zero code: 1

I don't have any ./ios or ./android folders in my project directory. I have also tried to run the eas build command again, same result.

Managed or bare?

Managed

Environment

    System:
      OS: macOS 12.2.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 15.6.0 - ~/.nvm/versions/node/v15.6.0/bin/node
      npm: 7.10.0 - ~/.nvm/versions/node/v15.6.0/bin/npm
    SDKs:
      iOS SDK:
        Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    IDEs:
      Android Studio: 4.1 AI-201.8743.12.41.7042882
      Xcode: 13.4/13F17a - /usr/bin/xcodebuild
    npmPackages:
      expo: ^44.0.0 => 44.0.5 
      react: 17.0.1 => 17.0.1 
      react-dom: 17.0.1 => 17.0.1 
      react-native: 0.64.3 => 0.64.3 
      react-native-web: 0.17.1 => 0.17.1 
    npmGlobalPackages:
      eas-cli: 0.52.0
      expo-cli: 5.4.7
    Expo Workflow: managed

Error output

No response

Reproducible demo or steps to reproduce from a blank project

Just run

eas build -p all --profile development

My eas.json:

"cli": {
  "version": ">= 0.46.0"
},
"build": {
    "configuration_only": {
      "node": "15.6.0"
    },
    "development": {
      "extends": "configuration_only",
      "developmentClient": true,
      "distribution": "internal",
      "releaseChannel": "development",
      "ios": {
        "simulator": true
      },
      "env": {
        "ENVIRONMENT": "DEVELOPMENT"
      }
    },
.....
...
..
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reviewIssue is ready to be reviewed by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions