Capacitor: cap init prompt issues

Created on 20 Jun 2019  ·  10Comments  ·  Source: ionic-team/capacitor

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
  • [x] web

OS of the development machine

  • [ ] Windows
  • [x] 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.

Most helpful comment

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

All 10 comments

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?

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.

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

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

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

Same here, same configuration

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.

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

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

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

Was this page helpful?
0 / 5 - 0 ratings