eas-cli icon indicating copy to clipboard operation
eas-cli copied to clipboard

AssertionError: You must have access to the account to run this command

Open bertdelaspeed opened this issue 3 years ago • 6 comments

Build/Submit details page URL

No response

Summary

I'm facing an error that I can't see why I'm getting. I made sure I was logged into the eas by doing eas login and after doing eas whoami I get that I'm logged in but when I do eas build -p android --profile previewAndroid It says I must have access to the account.

{
  "cli": {
    "version": ">= 1.2.0"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal"
    },
    "previewAndroid": {
      "android": {
        "buildType": "apk"
      }
    },
    "production": {}
  },
  "submit": {
    "production": {}
  }
}

Managed or bare?

Managed

Environment

expo-env-info 1.0.5 environment info: System: OS: Windows 10 10.0.19044 Binaries: Node: 14.16.1 - C:\Program Files\nodejs\node.EXE npm: 6.14.12 - C:\Program Files\nodejs\npm.CMD
npmPackages: expo: ~46.0.9 => 46.0.9 react: 18.0.0 => 18.0.0 react-dom: 18.0.0 => 18.0.0 react-native: 0.69.4 => 0.69.4 react-native-web: ~0.18.7 => 0.18.7 react-navigation: ^4.4.4 => 4.4.4 Expo Workflow: managed

=======================================================

Some dependencies are incompatible with the installed expo package version:

  • react-native - expected version: 0.69.5 - actual version installed: 0.69.4
  • react-native-screens - expected version: ~3.15.0 - actual version installed: 3.16.0 Your project may not work correctly until you install the correct versions of the packages. To install the correct versions of these packages, please run: expo install [package-name ...]

Error output

No response

Reproducible demo or steps to reproduce from a blank project

  • After project is done Run the following commands
  • eas login then proceed into login in
  • eas build:configure
  • eas build --platform android

This is when the error occurs

bertdelaspeed avatar Sep 01 '22 10:09 bertdelaspeed

  1. What's the error you're getting?
  2. Do you have owner set in app.json?
  3. Do you have access to the owner organization/account specified by 2.?

dsokal avatar Sep 01 '22 13:09 dsokal

  1. The error is the following : AssertionError: You must have access to the bertdelaspeed account to run this command Code: ERR_ASSERTION
  2. no, I don't have owner in app.json. How should I use it and where exactly to place it ?
  3. Yes I'm logged in the expo website with that account, it's mine

bertdelaspeed avatar Sep 01 '22 13:09 bertdelaspeed

Are you sure you don't have a typo in your account name? :) Have you recently renamed your account?

dsokal avatar Sep 01 '22 13:09 dsokal

I don't think so, because I checked whether I was actually logged in with the command eas whoami and it displays bertdelaspeed and prior to that I run the command eas login to start the process of creating the build

bertdelaspeed avatar Sep 01 '22 13:09 bertdelaspeed

For anyone who would face this issue here's the fix.

  1. Go to EAS and Log into your account
  2. On the left section click on All project
  3. Create a new project for your app
  4. Link the project to your expo app
npm install --global eas-cli
eas init --id f6f6d1d5-0296-46b5-8734-62f348a6aee2

bertdelaspeed avatar Jan 09 '23 08:01 bertdelaspeed

For anyone who would face this issue here's the fix.

  1. Go to EAS and Log into your account
  2. On the left section click on All project
  3. Create a new project for your app
  4. Link the project to your expo app
npm install --global eas-cli
eas init --id f6f6d1d5-0296-46b5-8734-62f348a6aee2

my problem was solve

Testzyler avatar Mar 20 '24 14:03 Testzyler