# \[WARN\] Detected locally installed Ionic CLI, but it's to old--using global CLI

**URL:** <https://forum.ionicframework.com/t/warn-detected-locally-installed-ionic-cli-but-its-to-old-using-global-cli/120347>\
**Category:** ionic-v3\
**Created:** [February 3, 2018, 6:29am UTC](https://forum.ionicframework.com/t/warn-detected-locally-installed-ionic-cli-but-its-to-old-using-global-cli/120347 "2018-02-03T06:29:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cherry](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cherry/32/149370_2.png) [@cherry](https://forum.ionicframework.com/u/cherry)\
**Post date:** [February 3, 2018, 6:29am UTC](https://forum.ionicframework.com/t/warn-detected-locally-installed-ionic-cli-but-its-to-old-using-global-cli/120347/1 "2018-02-03T06:29:48Z")

</div>

Hello, I am still trying to solve my problem [click me](https://forum.ionicframework.com/t/cannot-load-empty-config-xml-file-android-build/119461/3) and I think it has something todo with this `WARNING`.

[This post](https://forum.ionicframework.com/t/how-to-solve-detected-locally-installed-ionic-cli-but-its-too-old-using-global-cli/111168) sadly didn’t helped me out much.

Here is my **Ionic Info**.

 ![exe](https://global.discourse-cdn.com/ionicframework/original/3X/a/a/aa2ac67ccdda61268316908974c47b06f79e1d9f.png)

**NOTE** I’ve removed the Platforms Folder because I want to fix this error first before adding a new platform.

What I tried already to compare _my Application_ with a _default Ionic App_, I didn’t found any differences in app.modules, etc…  
_ **It doesn’t show this error when I run the default App!** _

I hope someone can help me out!

---

<div class="post-metadata">

**Author:** ![killerchip](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/killerchip/32/110654_2.png) [@killerchip](https://forum.ionicframework.com/u/killerchip)\
**Post date:** [February 3, 2018, 6:43am UTC](https://forum.ionicframework.com/t/warn-detected-locally-installed-ionic-cli-but-its-to-old-using-global-cli/120347/2 "2018-02-03T06:43:04Z")

</div>

Hello,

Please check your package.json. Is there a ‘ionic’ entry? like:  
“ionic”: “XXXX”,

If yes, then remove it with  
`npm uninstall ionic --save`

If not, then probably there is one surviving from older installations inside the `node_modules`  
I then suggest you remove the `node_modules` directory and then re-created it with:  
`npm install`

Tip: I would suggest of course, to take a backup of your directory before trying out the above steps. Just in case you brake something…

Regards

---

<div class="post-metadata">

**Author:** ![cherry](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cherry/32/149370_2.png) [@cherry](https://forum.ionicframework.com/u/cherry)\
**Post date:** [February 3, 2018, 6:51am UTC](https://forum.ionicframework.com/t/warn-detected-locally-installed-ionic-cli-but-its-to-old-using-global-cli/120347/3 "2018-02-03T06:51:41Z")

</div>

Tried to rebuild _node\_modules_ already, no luck.  
Also there is no such thing like **Ionic: VERSION** in _package.json_. Yet I tried your command it gave me this error.

![2018-02-03 07_48_52-Program Manager](https://global.discourse-cdn.com/ionicframework/original/3X/5/2/52ad55f4a36d48bee20a35024aecfa0fd9628779.png)

Also what always comes up when I do `ionic serve` is this error. I’ve tried to remove it already with the shown commands but the same error occured.  
 ![2018-02-03 07_49_59-npm](https://global.discourse-cdn.com/ionicframework/original/3X/f/a/fadd503c67ebf1dec89331c38360b3b41fbbfbf6.png)

This is what happens when I try to remove it.  
 ![2018-02-03 07_50_57-npm](https://global.discourse-cdn.com/ionicframework/original/3X/c/7/c7e713e05b37cbca822abd2028ec19f7eea70515.png)

**_Thanks for any help!_**

---

<div class="post-metadata">

**Author:** ![killerchip](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/killerchip/32/110654_2.png) [@killerchip](https://forum.ionicframework.com/u/killerchip)\
**Post date:** [February 3, 2018, 7:44am UTC](https://forum.ionicframework.com/t/warn-detected-locally-installed-ionic-cli-but-its-to-old-using-global-cli/120347/4 "2018-02-03T07:44:18Z")

</div>

OK.

Regarding the warning on @ionic/cli-plugin-cordova and @ionic/cli-plugin-ionic-angular, it’s OK. Your package json has these plugins still but they are no longer required, since a newer version of CLI is used. You can remove them, but I would suggest after you resolve the warning with the CLI version.

Regarding the CLI version, I really don’t know what is happening then…

I would suggest one of the following ‘crude’ possible solutions…

1. If you have your project in remote repo… then clone locally to a fresh directory and rebuild from scratch (npm install, etc.)

2. Start a new project in a different directory, and copy over your source files from your existing directory.

These might ‘clean-up’ whatever is there that is causing the CLI warning

Regards

---

<div class="post-metadata">

**Author:** ![cherry](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cherry/32/149370_2.png) [@cherry](https://forum.ionicframework.com/u/cherry)\
**Post date:** [February 5, 2018, 5:57am UTC](https://forum.ionicframework.com/t/warn-detected-locally-installed-ionic-cli-but-its-to-old-using-global-cli/120347/5 "2018-02-05T05:57:42Z")

</div>

**I fixed the issue!**

I’ve removed the `@ionic/cli-plugin-cordova and @ionic/cli-plugin-ionic-angular`, manually from `package.json`.

My `Ionic info` remains the same.

_Sadly I don’t really know why the **[WARN] Detected locally installed Ionic CLI, but it’s to old–using global CLI** disappeard, so thats a bummer._

Maybe because I restarted my PC several times **after** `updating npm` and **switching** `node versions` back and forwand.

**Thanks for the input anyway! 🐦**

---

<div class="post-metadata">

**Author:** ![jairfig](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jairfig/32/126038_2.png) [@jairfig](https://forum.ionicframework.com/u/jairfig)\
**Post date:** [May 28, 2019, 4:06pm UTC](https://forum.ionicframework.com/t/warn-detected-locally-installed-ionic-cli-but-its-to-old-using-global-cli/120347/6 "2019-05-28T16:06:05Z")

</div>

> [@killerchip](#):
>
> Please check your package.json. Is there a ‘ionic’ entry? like:  
> “ionic”: “XXXX”,
> 
> If yes, then remove it with  
> `npm uninstall ionic --save`
> 
> If not, then probably there is one surviving from older

What works for me was remove ionic-angular

`$ npm uninstall ionic-angular --save`  
`$ npm audit fix --force`

---

<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:51pm UTC](https://forum.ionicframework.com/t/warn-detected-locally-installed-ionic-cli-but-its-to-old-using-global-cli/120347/7 "2021-07-19T21:51:54Z")

</div>

Closed on July 19, 2021, 9:51pm UTC


