# Install ionic mac

**URL:** <https://forum.ionicframework.com/t/install-ionic-mac/95326>\
**Category:** ionic-v1\
**Created:** [June 21, 2017, 4:29pm UTC](https://forum.ionicframework.com/t/install-ionic-mac/95326 "2017-06-21T16:29:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfreedo1110](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alfreedo1110](https://forum.ionicframework.com/u/alfreedo1110)\
**Post date:** [June 21, 2017, 4:29pm UTC](https://forum.ionicframework.com/t/install-ionic-mac/95326/1 "2017-06-21T16:29:43Z")

</div>

i have a problem when when I install ionic I get an error

my error is this

iMac-de-TALLERMAC1:Users TALLERMAC1$ sudo npm install ionic@legacy  
npm WARN saveError ENOENT: no such file or directory, open '/Users/package.json’  
npm WARN enoent ENOENT: no such file or directory, open '/Users/package.json’  
npm WARN Users No description  
npm WARN Users No repository field.  
npm WARN Users No README data  
npm WARN Users No license field.

- ionic@2.2.3  
updated 1 package in 46.467s

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [June 21, 2017, 5:37pm UTC](https://forum.ionicframework.com/t/install-ionic-mac/95326/2 "2017-06-21T17:37:54Z")

</div>

> [@alfreedo1110](#):
>
> iMac-de-TALLERMAC1:Users TALLERMAC1$ sudo npm install ionic@legacy

Where did you get this command from?

Adding `-g` to install the CLI globally will probably fix your problem.

---

<div class="post-metadata">

**Author:** ![alfreedo1110](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alfreedo1110](https://forum.ionicframework.com/u/alfreedo1110)\
**Post date:** [June 21, 2017, 6:03pm UTC](https://forum.ionicframework.com/t/install-ionic-mac/95326/3 "2017-06-21T18:03:03Z")

</div>

Also probe adding -g and error

iMac-de-TALLERMAC1:~ TALLERMAC1$ sudo npm install ionic@legacy -g

Password:

Sorry, try again.

Password:

/Users/TALLERMAC1/.npm-packages/bin/ionic →   
/Users/TALLERMAC1/.npm-packages/lib/node\_modules/ionic/bin/ionic

> fsevents@1.1.2 install  
> /Users/TALLERMAC1/.npm-packages/lib/node\_modules/ionic/node\_modules/fsevents

> node install

[fsevents] Success:  
“/Users/TALLERMAC1/.npm-packages/lib/node\_modules/ionic/node\_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node”  
already installed

Pass --update-binary to reinstall or --build-from-source to recompile

- ionic@2.2.3

added 395 packages, removed 323 packages and updated 43 packages in 60.46s

iMac-de-TALLERMAC1:~ TALLERMAC1$ ionic start miaplicacion --v2

-bash: ionic: command not found

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [June 21, 2017, 9:09pm UTC](https://forum.ionicframework.com/t/install-ionic-mac/95326/4 "2017-06-21T21:09:57Z")

</div>

Please edit your post and use the `</>` button above the post input field to format your code or error message or wrap it in ````` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

What does `npm list -g depth=0` return?  
I think the problem is the `sudo` stuff.
