question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stuck at selecting npm client step when initialize project

See original GitHub issue

Description 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, or npm audit for details

npm 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, or npm audit for details

capacitor 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:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
jcesarmobilecommented, May 7, 2019

Oh, sorry, you also need to add an “integrations” object to the ionic.config.json file to let it know you have integrated capacitor:

"integrations": {
    "capacitor": {}
  },
3reactions
jcesarmobilecommented, May 6, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM stuck on idealTree: timing idealTree - Stack Overflow
I have had npm install freeze on me numerous times, lately. I'm not sure of the cause. When that happens I follow these...
Read more >
npm-ci
An easy way to do this is to run, for example, npm config set legacy-peer-deps=true --location=project and commit the .npmrc file to your...
Read more >
Manage npm packages - Visual Studio (Windows)
To open the package manager, from Solution Explorer, right-click the npm node in your project. Open package manager from Solution Explorer. Next ...
Read more >
How To Get Started with Node.js and Express - DigitalOcean
Step 1 — Setting Up the Project ... At this point, you can initialize a new npm project: npm init -y ... Step...
Read more >
Troubleshooting Node.js Deploys - Heroku Dev Center
Check the buildpack · Compare Node and npm Versions · Make sure the lockfile is up to date · Don't check in generated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found