Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to login on mac m1 #322

Open
herbertpimentel opened this issue Sep 30, 2022 · 5 comments
Open

Unable to login on mac m1 #322

herbertpimentel opened this issue Sep 30, 2022 · 5 comments

Comments

@herbertpimentel
Copy link

actualling when running on m1, none of the commands works. all of them fails with same errror

downgrading to version 2.0.0 login works on version, but then the cli does not recoginize flag --template on pull operation ¯_(ツ)_/¯

running on mac m1
node version v16.16.0 (I also tryed other version with no success)

beto@badblood Dev % realm-cli login --api-key **** --private-api-key ******     
node:events:505
      throw er; // Unhandled 'error' event
      ^

Error: spawn /Users/beto/.nvm/versions/node/v16.16.0/lib/node_modules/mongodb-realm-cli/realm-cli ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /Users/beto/.nvm/versions/node/v16.16.0/lib/node_modules/mongodb-realm-cli/realm-cli',
  path: '/Users/beto/.nvm/versions/node/v16.16.0/lib/node_modules/mongodb-realm-cli/realm-cli',
  spawnargs: [
    'login',
    '--api-key',
    '*****',
    '--private-api-key',
    '*****'
  ]
}
@herbertpimentel
Copy link
Author

herbertpimentel commented Sep 30, 2022

Login and pull works in version 2.0.0-beta.7

But, it sill does not recognize the flag --template

@makesitgo
Copy link
Contributor

@herbertpimentel you should look to get off the 2.0.x (and especially beta) builds ... our CLI is currently at 2.6.2

@makesitgo
Copy link
Contributor

--template is no longer a supported flag for pull/export command. the functionality that --template introduced should now be baked into the overall process... so let me know if you're finding any part of your use case not specifically handled

@herbertpimentel
Copy link
Author

herbertpimentel commented Oct 4, 2022

@makesitgo cool I just see that version@2.6.2 was released a day ago and now it works.
I don't understand what you mean by "should now be baked into the overall process..." I can't find any other way to "download" a template project with all the setup in place.

Also, as you can see in the image bellow, the UI on mongo plataform still do a reference for the flag template that does not exists anymore. LMK if there's any other way to get this project template.

image

@makesitgo
Copy link
Contributor

apologies I was getting parameters mixed up (we used to support a ?template query param on the /export api handler). you should be able to use --template just fine with the 2.6.2 version of the CLI (as you show in the screenshot here). in general I wouldn't expect any of our beta builds of the 2.x branch to be "stable" or "feature complete"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants