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

cap init prompt issues #1689

Closed
2 of 7 tasks
nephix opened this issue Jun 20, 2019 · 10 comments · Fixed by #1693
Closed
2 of 7 tasks

cap init prompt issues #1689

nephix opened this issue Jun 20, 2019 · 10 comments · Fixed by #1693

Comments

@nephix
Copy link

nephix commented Jun 20, 2019

Description of the problem:
When initializing capacitor in a newly created CRA, it hangs in the 2nd step when it asks for App Package ID.

Affected platform

  • Android
  • iOS
  • electron
  • web

OS of the development machine

  • Windows
  • macOS 10.14.5
  • linux

Other information:

node version:
v12.2.0
v10.15.1
v8.15.1

npm version:
6.9.0

Steps to reproduce:

$ npx create-react-app test
$ cd test
$ npm i -S @capacitor/core @capacitor/cli
$ npx cap init
? App name (App) <ENTER>
? App Package ID (in Java package format, no dashes) (com.example.app) <ENTER>

When it asks for App Package ID it does not proceed by hitting enter or CTRL C.

@jcesarmobile
Copy link
Member

I can't reproduce, are you using the terminal that comes with macOS or something else?
You have put 3 different node versions, did you test them all?

@nephix
Copy link
Author

nephix commented Jun 20, 2019

can't reproduce, are you using the terminal that comes with macOS or something else?

I tried it in the Terminal that comes with macOS as well as iterm.

You have put 3 different node versions, did you test them all?

Yepp, same result in every version.

@jcesarmobile
Copy link
Member

You are not entering any values, right? just using default ones
Does it work if you type anything?

@nephix
Copy link
Author

nephix commented Jun 20, 2019

I was able to type when it asked for App name.
Once it switched to App Package ID neither typing, <ENTER> nor <CTRL + D> worked

@styx0r
Copy link

styx0r commented Jun 20, 2019

Same here ... hangs up at the very same point. Using same configuration.

@Nodonisko
Copy link
Contributor

Same here, same configuration

@darkroastcreative
Copy link

I'm also having this issue. For reference, I tested with the integrated terminal in VS Code (1.35.1) and in Terminal.app (2.7.5) with Node 8.11.3 on my iMac running macOS Sierra (10.12.6). I only have one version of Node installed on my machine, as well.

@adamflitney
Copy link

I'm also having the same issue with a fresh install of capacitor and capacitor cli.
Tried in VSCode integrated terminal (node cmd) and also normal cmd.exe
OS: Windows 10.0.17134
Node: v10.8.0

@capacitor/[email protected]
@capacitor/[email protected]

Happened with my existing project and was able to reproduce in an empty dummy project

@jcesarmobile
Copy link
Member

jcesarmobile commented Jun 20, 2019

I've been able to reproduce in a different computer, will try to figure out whats going on.

As workaround you can use npx cap init appName com.app.id

@jcesarmobile
Copy link
Member

this is a bug in inquirer 6.4.0 that was released today, will pin the dependency to 6.3.1

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

Successfully merging a pull request may close this issue.

6 participants