Stuck at selecting npm client step when initialize project
See original GitHub issueDescription of the problem:
I follow the steps to create a Capacitor project and I was stuck at selecting npm client step
sudo ionic capacitor add ios Wed May 1 17:56:39 2019 Password:
ionic integrations enable capacitor npm i --save -E @capacitor/core
- @capacitor/core@1.0.0-beta.22 added 1 package from 1 contributor and audited 53272 packages in 8.473s found 1 high severity vulnerability run
npm audit fix
to fix them, ornpm audit
for detailsnpm i --save -E @capacitor/cli npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
- @capacitor/cli@1.0.0-beta.22 added 59 packages from 94 contributors and audited 53509 packages in 10.138s found 1 high severity vulnerability run
npm audit fix
to fix them, ornpm audit
for detailscapacitor init myApp io.ionic.starter ? Which npm client would you like to use? (Use arrow keys) ❯ yarn
The list doesn’t display ‘npm’ and also using arrow keys or Enter doesn’t help. It’s just stuck.
Affected platform
- Android
- iOS
OS of the development machine
- macOS
Other information:
Capacitor version:
node version: 10.15.3
npm version: 6.4.1
CocoaPods version:
Steps to reproduce:
Link to sample project:
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
Oh, sorry, you also need to add an “integrations” object to the ionic.config.json file to let it know you have integrated capacitor:
If you read the comments, it’s an issue in ionic CLI, it’s fixed but not released.
As workaround you can remove the --capacitor option when creating the project, and then do the integration manually like this:
npm install @capacitor/core @capacitor/cli
npx cap init