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

Starting a new project #5014

Open
william-specter opened this issue May 28, 2023 · 1 comment
Open

Starting a new project #5014

william-specter opened this issue May 28, 2023 · 1 comment

Comments

@william-specter
Copy link

Description:

I just installed Ionic and I can't start a project. When I try to create a new project it gets stuck on downloading the capacitor package and after a few minutes it prints an error message saying there were problems downloading the dependencies.
I also don't understand why when I start a new project it tries to install the capacitor package when I already have it installed globally on my computer.

Steps to Reproduce:

This is an example of what happens to me:

ionic start myApp sidemenu

It then starts the project build process and when it gets to this command it gets stuck until it throws a package download error a few minutes later:
npm.cmd i --save -E @capacitor/core@latest

How can I solve that problem?

@ionitron-bot ionitron-bot bot added the triage label May 28, 2023
@sean-perkins
Copy link
Contributor

Hello 👋 are you still experiencing this issue? Can you run ionic info and give me the output?

We install Capacitor as a local dev dependency for your project. While having Capacitor installed globally is great for development, this would not work when running the project in another environment or on another developer's machine (unless they also had Capacitor globally installed). As such, we install it as a best practice for most common set-ups.

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

No branches or pull requests

2 participants