node.js - I can’t install ionic on Mac OS X 10.10.3 -


my versions :

  • node version v0.10.33
  • npm version 1.4.28
  • cordova version 5.0.0

the error occurred when installed 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 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 type ionic -v, get

jce010:~ tareqalmasri$ ionic -v  -bash: ionic: command not found 

finally, found solution :) .

the solution apply following command:

sudo npm update -g cordova ionic


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -