# Install ionic on mac

**URL:** <https://forum.ionicframework.com/t/install-ionic-on-mac/1854>\
**Category:** ionic-v1\
**Created:** [March 14, 2014, 11:09am UTC](https://forum.ionicframework.com/t/install-ionic-on-mac/1854 "2014-03-14T11:09:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorge](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jorge](https://forum.ionicframework.com/u/jorge)\
**Post date:** [March 14, 2014, 11:09am UTC](https://forum.ionicframework.com/t/install-ionic-on-mac/1854/1 "2014-03-14T11:09:36Z")

</div>

Hi all

I already have cordova android and xcode run ok and want explore ionic

i have made the install

$ ionic start myApp

when i try create give this error

-bash: ionic: command not found

can anyone point what was going wrong ?.. (new to mac)

Best Regards

**_update_**

i copy css and js folders to www dev folder and start from there

Thks

---

<div class="post-metadata">

**Author:** ![Robin](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/robin/32/64162_2.png) [@Robin](https://forum.ionicframework.com/u/Robin)\
**Post date:** [March 14, 2014, 12:25pm UTC](https://forum.ionicframework.com/t/install-ionic-on-mac/1854/2 "2014-03-14T12:25:28Z")

</div>

How did you install `ionic-cli` in the first place? Is it installed globally by using `npm install -g ionic-cli` ?

_I’m not sure from the top of my head if the install package is called_ `ionic` _or_ `ionic-cli` _but my point is the global flag_ `-g`

---

<div class="post-metadata">

**Author:** ![jorge](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jorge](https://forum.ionicframework.com/u/jorge)\
**Post date:** [March 14, 2014, 1:33pm UTC](https://forum.ionicframework.com/t/install-ionic-on-mac/1854/3 "2014-03-14T13:33:17Z")

</div>

HI

I install this way

npm install -g ionic

---

<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:** [March 14, 2014, 1:38pm UTC](https://forum.ionicframework.com/t/install-ionic-on-mac/1854/4 "2014-03-14T13:38:28Z")

</div>

I know from my first experience when trying to install something from terminal on a mac that you always need to include `sudo` before you run `npm`.

```
sudo npm install -g ionic

```

You should be prompted to type your password then hit enter and it should install.

---

<div class="post-metadata">

**Author:** ![jorge](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jorge](https://forum.ionicframework.com/u/jorge)\
**Post date:** [March 14, 2014, 1:56pm UTC](https://forum.ionicframework.com/t/install-ionic-on-mac/1854/5 "2014-03-14T13:56:10Z")

</div>

Yes already try wth sudo …

MacBook-Pro- **:** \*\*\*\*\* j\*\*\*\*\*\*\*\*$ ionic start myApp  
-bash: ionic: command not found

---

<div class="post-metadata">

**Author:** ![jough](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jough/32/7887_2.png) [@jough](https://forum.ionicframework.com/u/jough)\
**Post date:** [March 14, 2014, 2:14pm UTC](https://forum.ionicframework.com/t/install-ionic-on-mac/1854/6 "2014-03-14T14:14:01Z")

</div>

If you’re still sudo installing npms you should upgrade to the latest version of Node.js (which also installs npm) - it no longer requires sudo to install packages.

@jorge - you may have installed ionic to a particular directory and not globally (the -g flag) so it’s not available anywhere.

Try this:

`$ npm cache clear`  
`$ npm uninstall ionic`  
`$ npm install ionic -g`

Then the Ionic CLI should work for you anywhere.
