# Ionic 5 problem ng subprocess with angular 14

**URL:** <https://forum.ionicframework.com/t/ionic-5-problem-ng-subprocess-with-angular-14/224415>\
**Category:** Ionic Angular\
**Created:** [June 21, 2022, 3:50pm UTC](https://forum.ionicframework.com/t/ionic-5-problem-ng-subprocess-with-angular-14/224415 "2022-06-21T15:50:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcoartese](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/marcoartese/32/141788_2.png) [@marcoartese](https://forum.ionicframework.com/u/marcoartese)\
**Post date:** [June 21, 2022, 3:50pm UTC](https://forum.ionicframework.com/t/ionic-5-problem-ng-subprocess-with-angular-14/224415/1 "2022-06-21T15:50:37Z")

</div>

I have this problem. When I compile an application and run the command ionic cordova prepare android i see this error:

```auto
Error: Unknown argument: platform [ERROR] An error occurred while running subprocess ng. ng.cmd run app:ionic-cordova-build --platform=android exited with exit code 1. Re-running this command with the --verbose flag may provide more information.

My Config: Angular CLI: 14.0.2 Node: 16.13.0 Package Manager: npm 8.1.0 OS: win32 x64 

If i lunch the same command with this config: 
Angular CLI: 13.0.4 Node: 16.13.0 Package Manager: npm 8.1.0 OS: win32 x64 
the project work correctly
```

---

<div class="post-metadata">

**Author:** ![EinfachHans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/einfachhans/32/130917_2.png) [@EinfachHans](https://forum.ionicframework.com/u/EinfachHans)\
**Post date:** [June 21, 2022, 3:59pm UTC](https://forum.ionicframework.com/t/ionic-5-problem-ng-subprocess-with-angular-14/224415/2 "2022-06-21T15:59:22Z")

</div>

Angular 14 support was added in angular `6.1.9`

---

<div class="post-metadata">

**Author:** ![marcoartese](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/marcoartese/32/141788_2.png) [@marcoartese](https://forum.ionicframework.com/u/marcoartese)\
**Post date:** [June 21, 2022, 4:08pm UTC](https://forum.ionicframework.com/t/ionic-5-problem-ng-subprocess-with-angular-14/224415/3 "2022-06-21T16:08:59Z")

</div>

Ok how can I solve the problem? a thousand thanks

---

<div class="post-metadata">

**Author:** ![EinfachHans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/einfachhans/32/130917_2.png) [@EinfachHans](https://forum.ionicframework.com/u/EinfachHans)\
**Post date:** [June 21, 2022, 4:11pm UTC](https://forum.ionicframework.com/t/ionic-5-problem-ng-subprocess-with-angular-14/224415/4 "2022-06-21T16:11:42Z")

</div>

Two options:

1. Update Ionic to that Version
2. Don’t update to Angular 14 😃

You definitively should update to Ionic 6, if you use Angular 14 or not. Check the guide here: [Upgrading to Ionic 6 | Ionic Documentation](https://ionicframework.com/docs/intro/upgrading-to-ionic-6)
