# \[ionic4beta7\] how to update an existing project to beta 11?

**URL:** <https://forum.ionicframework.com/t/ionic4beta7-how-to-update-an-existing-project-to-beta-11/142893>\
**Category:** Ionic Framework\
**Created:** [September 26, 2018, 2:18pm UTC](https://forum.ionicframework.com/t/ionic4beta7-how-to-update-an-existing-project-to-beta-11/142893 "2018-09-26T14:18:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rtpHarry](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rtpharry/32/121938_2.png) [@rtpHarry](https://forum.ionicframework.com/u/rtpHarry)\
**Post date:** [September 26, 2018, 2:18pm UTC](https://forum.ionicframework.com/t/ionic4beta7-how-to-update-an-existing-project-to-beta-11/142893/1 "2018-09-26T14:18:33Z")

</div>

I’m trying to figure out how to update a project I’m working on to the latest beta.

I tried changing the package name in package.json to beta14 but then after redoing `npm i` I ended up with a bunch of errors like this:

```auto
npm WARN @ionic/ng-toolkit@1.0.8 requires a peer of @angular-devkit/architect@~0.8.0-rc.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/ng-toolkit@1.0.8 requires a peer of @angular-devkit/build-angular@~0.8.0-rc.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/ng-toolkit@1.0.8 requires a peer of @angular-devkit/core@~0.8.0-rc.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/ng-toolkit@1.0.8 requires a peer of @angular-devkit/schematics@~0.8.0-rc.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/schematics-angular@1.0.6 requires a peer of @angular-devkit/core@~0.8.0-rc.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/schematics-angular@1.0.6 requires a peer of @angular-devkit/schematics@~0.8.0-rc.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 1140 packages from 1357 contributors and audited 50110 packages in 201.185s
found 0 vulnerabilities

```

and when I do `npm outdated` its listing a ton of packages.

It feels like trying to rip the whole thing to shreds by retyping the entire package.json with its latest versions for everything is not the way to do this.

Can anyone help me out with what I’m supposed to do, please?

I did some searches but the best I came up with was a similar question for Ionic 1 beta and that said get the new packages from a freshly scaffolded demo but thats still generating beta7 packages when I tried that.

---

<div class="post-metadata">

**Author:** ![magetto](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@magetto](https://forum.ionicframework.com/u/magetto)\
**Post date:** [October 3, 2018, 11:46am UTC](https://forum.ionicframework.com/t/ionic4beta7-how-to-update-an-existing-project-to-beta-11/142893/2 "2018-10-03T11:46:47Z")

</div>

Please have a look at the following post and check out the solution from @reedrichards

> [@How to update ionic 4 project to latest beta release?](https://forum.ionicframework.com/t/how-to-update-ionic-4-project-to-latest-beta-release/140050):
>
> I updated ionic globally to v4 beta.3 a week ago and created a new project. How can I update my project to beta.5? I ran npm install -g ionic@latest as well as npm install --save ionic@latest but when I opened my package.json in my project it doesn’t look like anything changed. I’m sure this is a stupid question but I’m lost and hoping someone can point me in the right direction when it comes to updating my project the same way as creating a new one with ionic start. Thanks!

I followed the second way:

```auto
rm -r node_modules
rm package-lock.json
npm install

```

and it worked for me. I now also use ncu as recommended to update my package.json  
Please also note that you should keep typescript 2.9.2 as recommended.

I only had to change the native dependencies to “beta.14” in Ionic beta 7. Now they are …beta.21.

---

<div class="post-metadata">

**Author:** ![MattE](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/matte/32/66712_2.png) [@MattE](https://forum.ionicframework.com/u/MattE)\
**Post date:** [October 3, 2018, 12:08pm UTC](https://forum.ionicframework.com/t/ionic4beta7-how-to-update-an-existing-project-to-beta-11/142893/3 "2018-10-03T12:08:27Z")

</div>

I’m sorry @magetto but that is not a good way to update ionic.

The only thing you have to do is open package.json and edit the version number of `@ionic/angular`  
Example: replace`4.0.0-beta.7` with `4.0.0-beta.12`  
Save the file and run `npm install`.

This will install the beta.12 version of ionic.

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [October 3, 2018, 12:12pm UTC](https://forum.ionicframework.com/t/ionic4beta7-how-to-update-an-existing-project-to-beta-11/142893/4 "2018-10-03T12:12:09Z")

</div>

@MattE just to be clear, in my post I suggest first to go with “npm rm/install @ionic/angular --save” and only if it doesn’t work to go with a full clean new install

---

<div class="post-metadata">

**Author:** ![magetto](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@magetto](https://forum.ionicframework.com/u/magetto)\
**Post date:** [October 3, 2018, 12:24pm UTC](https://forum.ionicframework.com/t/ionic4beta7-how-to-update-an-existing-project-to-beta-11/142893/5 "2018-10-03T12:24:41Z")

</div>

…agreed for most (regular) cases. But when I did my last beta update this way I ran into dependency issues and I could resolve them by following the second solution. The discussed cons for the second solution were acceptable for me as I really wanted to keep my dependencies clean. From your point of view: are there additional cons not to do it this way?

---

<div class="post-metadata">

**Author:** ![rtpHarry](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rtpharry/32/121938_2.png) [@rtpHarry](https://forum.ionicframework.com/u/rtpHarry)\
**Post date:** [October 20, 2018, 7:50am UTC](https://forum.ionicframework.com/t/ionic4beta7-how-to-update-an-existing-project-to-beta-11/142893/6 "2018-10-20T07:50:05Z")

</div>

Just to draw a conclusion to this, I have come back to Ionic development again today and successfully updated the project.

These console commands updated me to beta.13:

```
npm uninstall @ionic/angular
npm install @ionic/angular --save

```

Thanks for your help everyone.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:16pm UTC](https://forum.ionicframework.com/t/ionic4beta7-how-to-update-an-existing-project-to-beta-11/142893/7 "2021-07-19T21:16:01Z")

</div>


