ionic-team / ionic-team/ionic-cli

Encourage local installation of @ionic/cli package

Aberta
#4,624 1 comentário 6 reações 0 responsáveis Ver no GitHub
triage
Linguagem predominante
TypeScript
Estrelas
2k
Forks
682
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

## Problem Statement
Currently, the [installation docs](https://ionicframework.com/docs/cli#installation) recommends global installation of the cli. This can be annoying when you have to maintain different projects with different ionic framework versions (for example ionic framework 3 and 4) because one cli does not work with the other version of the framework.

## Suggested changes
It's been a while since npm has introduced npx. I don't see any good reason to install cli globally anymore.
So I would like to propose a change in the documentation to recommend the local installation of cli.

But because of how cli works currently, it requires `native-run` to be installed globally. So if it's possible, I would also like to propose to change this behavior of cli to work with `native-run` installed locally.

Another advantage of installing cli locally is making the initial setup of the project in a new machine much easier. With this, `npm install` should take care of everything ideally.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Start with the installation documentation linked in the issue and trace the CLI path that invokes native-run. Determine whether local CLI and native-run installation can replace the documented global setup, then update the recommendation and verify project setup with npm install.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
typescript
Domínio
cli, documentation
Tipo de issue
Funcionalidade
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.