# Problem updating to beta 12 with command line

**URL:** <https://forum.ionicframework.com/t/problem-updating-to-beta-12-with-command-line/9699>\
**Category:** ionic-v1\
**Created:** [September 15, 2014, 1:47pm UTC](https://forum.ionicframework.com/t/problem-updating-to-beta-12-with-command-line/9699 "2014-09-15T13:47:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lozonta](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@lozonta](https://forum.ionicframework.com/u/lozonta)\
**Post date:** [September 15, 2014, 1:47pm UTC](https://forum.ionicframework.com/t/problem-updating-to-beta-12-with-command-line/9699/1 "2014-09-15T13:47:38Z")

</div>

Hello, if I update the library of my project from beta 11 to 12 using the command ionic lib update the file ionic.bundle.js seems to be broken. I’ve tried twise, same result.

Strange content at line 506, if I download manually the zip the library is correct, may be the zip for lib update is damaged?

// pointer type  
&nbsp; ionic.Gestures.POINTER\_MOUSE = ‘mouse’;  
&nbsp; ionic.Gestures.POINTER\_TOUCH = ‘touch’;  
&nbsp; **ie, delta\_x, delta\_y) {**  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x: Math.abs(delta\_x / delta\_time) || 0,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y: Math.abs(delta\_y / delta\_time) || 0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };  
&nbsp;&nbsp;&nbsp; },

Bye, Paolo.

---

<div class="post-metadata">

**Author:** ![lozonta](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@lozonta](https://forum.ionicframework.com/u/lozonta)\
**Post date:** [September 15, 2014, 1:49pm UTC](https://forum.ionicframework.com/t/problem-updating-to-beta-12-with-command-line/9699/2 "2014-09-15T13:49:59Z")

</div>

I’ve compared the files of the zip dowloaded manually with the files of the lib update and more then one file have different size…

---

<div class="post-metadata">

**Author:** ![rafaellop](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rafaellop](https://forum.ionicframework.com/u/rafaellop)\
**Post date:** [September 15, 2014, 3:12pm UTC](https://forum.ionicframework.com/t/problem-updating-to-beta-12-with-command-line/9699/3 "2014-09-15T15:12:37Z")

</div>

As I have seen in the fortum, you must first update the Ionic CLI to the newest version:

```auto
npm update -g ionic

```

---

<div class="post-metadata">

**Author:** ![lozonta](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@lozonta](https://forum.ionicframework.com/u/lozonta)\
**Post date:** [September 15, 2014, 4:06pm UTC](https://forum.ionicframework.com/t/problem-updating-to-beta-12-with-command-line/9699/4 "2014-09-15T16:06:20Z")

</div>

already done before, i’ve ionic CLI v1.2.5-beta1, but does not seems strange the different content of the zip downloaded manually from the other downloaded by lib update? there are some js with different size and content with errors.
