ionic-team / ionic-team/ionic-cli

@ionic/utils-subprocess 2.1.12 change log does not mention node 16 is now the minimum version

Aperta
#5,024 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
triage
Lingua principale
TypeScript
Stelle
2k
Fork
682
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Description:**
I'm currently upgrading to Capacitor 3 (yes, I'm behind, I've having to upgrade due to jcenter going down) and I'm also stuck on node 12. Trying to run `npx cap sync ios` gives me:

```
promise.p.stdout?.pipe(stdoutBuf);
^

SyntaxError: Unexpected token '.'
```

Because 12 does not have option chaining. I scanned the change log and found that in 2.0.0 the minimum was increased to node 10 but no other mention. Then scanning through the code I found [this commit](https://github.com/ionic-team/ionic-cli/commit/85fb4fac177721cfcfb32b3eebe0c430d380de0e) which says the minimum is being bumped to node 16. This does not seem appropriate for a patch version (2.1.11 -> 2.1.12)

**Steps to Reproduce:**

Try to use capacitor cli v3 with node 12

**Output:**

See above.

**My `ionic info`:**

```
N/A
```

**Other Information:**

This fix will probably be to try and pin @ionic/utils-subprocess at 2.1.11 but I wanted to record this for others running into the same issue (possibly for the same reasons, having to upgrade due to jcenter/jfrog).

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Review the @ionic/utils-subprocess 2.1.12 changelog and the linked commit that raised the minimum Node version. Update the changelog to state that Node 16 is required for this release, then verify that the version and wording accurately describe the compatibility change.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
nodejs, typescript
Ambito
cli, documentation
Tipo di issue
Documentazione
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.