# Problem installing ionic

**URL:** <https://forum.ionicframework.com/t/problem-installing-ionic/9538>\
**Category:** ionic-v1\
**Created:** [September 11, 2014, 11:35pm UTC](https://forum.ionicframework.com/t/problem-installing-ionic/9538 "2014-09-11T23:35:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Appsrex](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Appsrex](https://forum.ionicframework.com/u/Appsrex)\
**Post date:** [September 11, 2014, 11:35pm UTC](https://forum.ionicframework.com/t/problem-installing-ionic/9538/1 "2014-09-11T23:35:23Z")

</div>

Guys i am new And having issue when trying to install ionic on my macbook pro( i have installed nodejs) ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/3671/f63786f2f9379337.png)

please check the screenshot to see the error. Thanks

---

<div class="post-metadata">

**Author:** ![gnomeontherun](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gnomeontherun/32/64484_2.png) [@gnomeontherun](https://forum.ionicframework.com/u/gnomeontherun)\
**Post date:** [September 11, 2014, 11:43pm UTC](https://forum.ionicframework.com/t/problem-installing-ionic/9538/2 "2014-09-11T23:43:28Z")

</div>

Often you need to install node modules with `sudo` on a mac. It depends on how your permissions are setup, but the following should do it.

`sudo npm install -g ionic`

---

<div class="post-metadata">

**Author:** ![Appsrex](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Appsrex](https://forum.ionicframework.com/u/Appsrex)\
**Post date:** [September 12, 2014, 12:06am UTC](https://forum.ionicframework.com/t/problem-installing-ionic/9538/3 "2014-09-12T00:06:56Z")

</div>

That worked like a charm! thanks a lot
