I cannot install ionic on Mac OS X 10.10.3
My versions:
- Node version v0.10.33
- Version for npm - 1.4.28
- Cordova version 5.0.0
An error occurred while installing ionic:
**jce010:~ Tareqalmasri$ sudo npm install -g ionic**
Password:
/
> node-sass@0.9.6 install /usr/local/lib/node_modules/ionic/node_modules/gulp-sass/node_modules/node-sass
> node build.js
`darwin-x64-v8-3.14` exists; testing
․․․․․․․․․․․․․․․․․․․․․․․․․․
26 passing (51ms)
Binary is fine; exiting
ionic@1.0.0 /usr/local/lib/node_modules/ionic
├── gulp-rename@1.2.2
├── gulp-concat@2.5.2 (through2@0.6.5, gulp-util@3.0.5, concat-with-sourcemaps@1.0.2)
├── gulp@3.8.11 (pretty-hrtime@0.2.2, interpret@0.3.10, deprecated@0.0.1, archy@1.0.0, minimist@1.1.1, v8flags@2.0.5, tildify@1.0.0, semver@4.3.6, chalk@0.5.1, orchestrator@0.3.7, liftoff@2.1.0, gulp-util@3.0.5, vinyl-fs@0.3.13)
├── gulp-minify-css@0.3.13 (memory-cache@0.0.5, through2@0.6.5, vinyl-sourcemaps-apply@0.1.4, bufferstreams@0.0.2, clean-css@3.0.10, gulp-util@3.0.5)
└── gulp-sass@0.7.3 (map-stream@0.1.0, gulp-util@3.0.5, node-sass@0.9.6)
When I type ionic -v I get
jce010:~ Tareqalmasri$ ionic -v
-bash: ionic: command not found
+3
source to share
2 answers
Homebrew solved this in my case
It took me a few hours to set ionic, frustrating especially on a very sunny day> (
Nothing succeeded:
- bash profile entries
- Sudo commands
- Npm updates
- etc.
Which ended up solving everything: I installed node using Homebrew . "After that, all the commands worked fine:
npm install -g cordova ionic
ionic start myApp tabs
0
source to share