# Error installing Ionic and Cordova

**URL:** <https://forum.ionicframework.com/t/error-installing-ionic-and-cordova/63341>\
**Category:** ionic-v1\
**Created:** [September 13, 2016, 7:48pm UTC](https://forum.ionicframework.com/t/error-installing-ionic-and-cordova/63341 "2016-09-13T19:48:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GabrielBarreto](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@GabrielBarreto](https://forum.ionicframework.com/u/GabrielBarreto)\
**Post date:** [September 13, 2016, 7:48pm UTC](https://forum.ionicframework.com/t/error-installing-ionic-and-cordova/63341/1 "2016-09-13T19:48:07Z")

</div>

Hi, i’m getting the following error trying to install ionic

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/0/6/068c9b42534701a10fed1ccaff40fa73f8dee6a0.JPG)

I was using ionic normally in June, now i’ve come back and tryed to create a new project and wasn’t able. So i updated node, npm and when i try to update cordova and ionic they give the same errors with minimatch and lodash.  
I’ve updated lodash and minimatch, cleared the cache and done this in admin mode, but nothing seems to help. What should i do?

---

<div class="post-metadata">

**Author:** ![matheusabreu](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@matheusabreu](https://forum.ionicframework.com/u/matheusabreu)\
**Post date:** [September 14, 2016, 1:54am UTC](https://forum.ionicframework.com/t/error-installing-ionic-and-cordova/63341/2 "2016-09-14T01:54:35Z")

</div>

I’m getting the same error. Even updating lodash and minimatch the error persists.

---

<div class="post-metadata">

**Author:** ![matheusabreu](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@matheusabreu](https://forum.ionicframework.com/u/matheusabreu)\
**Post date:** [September 14, 2016, 2:11am UTC](https://forum.ionicframework.com/t/error-installing-ionic-and-cordova/63341/3 "2016-09-14T02:11:24Z")

</div>

Hey @GabrielBarreto please check your node version, you may have an unsupported version. I tried with node v6.1.0 and it worked.  
If you have nvm, you can list installed node versions `nvm ls` or remote versions `nvm ls-remote`. After that just run `nvm use v6.1.0` (vYourVersion) and try again to install/update ionic. Additionally run `nvm alias default v6.1.0` (vYourVersion) to set new node version as default.
