I can't install ionic on Mac OS X 10.10.3


#1

My Versions are :

Node version is v0.10.33
npm version is 1.4.28
Cordova version is 5.0.0

The error that occurred when I 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 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)

#2

I don’t see any error in those messages?


#3

But the ionic can’t install ? why?
when I type ionic -v, I got

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

#4

Another thing when I try to install new version of Note.js ex:
Node version is v0.12.4
npm version is 2.10.1
Cordova version is 5.0.0

Then apply “sudo npm install -g ionic” command, I will have different message as the following:

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

child_process: customFds option is deprecated, use stdio instead.
  CXX(target) Release/obj.target/binding/binding.o
  CXX(target) Release/obj.target/binding/sass_context_wrapper.o
  CXX(target) Release/obj.target/binding/libsass/ast.o
  CXX(target) Release/obj.target/binding/libsass/base64vlq.o
  CXX(target) Release/obj.target/binding/libsass/bind.o
  CXX(target) Release/obj.target/binding/libsass/constants.o
  CXX(target) Release/obj.target/binding/libsass/context.o
  CXX(target) Release/obj.target/binding/libsass/contextualize.o
  CXX(target) Release/obj.target/binding/libsass/copy_c_str.o
  CXX(target) Release/obj.target/binding/libsass/error_handling.o
  CXX(target) Release/obj.target/binding/libsass/eval.o
  CXX(target) Release/obj.target/binding/libsass/expand.o
  CXX(target) Release/obj.target/binding/libsass/extend.o
  CXX(target) Release/obj.target/binding/libsass/file.o
  CXX(target) Release/obj.target/binding/libsass/functions.o
  CXX(target) Release/obj.target/binding/libsass/inspect.o
  CXX(target) Release/obj.target/binding/libsass/output_compressed.o
  CXX(target) Release/obj.target/binding/libsass/output_nested.o
  CXX(target) Release/obj.target/binding/libsass/parser.o
  CXX(target) Release/obj.target/binding/libsass/prelexer.o
  CXX(target) Release/obj.target/binding/libsass/sass.o
  CXX(target) Release/obj.target/binding/libsass/sass_interface.o
  CXX(target) Release/obj.target/binding/libsass/source_map.o
  CXX(target) Release/obj.target/binding/libsass/to_c.o
  CXX(target) Release/obj.target/binding/libsass/to_string.o
  CXX(target) Release/obj.target/binding/libsass/units.o
  CXX(target) Release/obj.target/binding/libsass/utf8_string.o
  CXX(target) Release/obj.target/binding/libsass/util.o
  CXX(target) Release/obj.target/binding/libsass/sass2scss/sass2scss.o
  SOLINK_MODULE(target) Release/binding.node
  SOLINK_MODULE(target) Release/binding.node: Finished
Installed in `/usr/local/lib/node_modules/ionic/node_modules/gulp-sass/node_modules/node-sass/bin/darwin-x64-v8-3.28/binding.node`
ionic@1.0.0 /usr/local/lib/node_modules/ionic
├── gulp-rename@1.2.2
├── gulp-concat@2.5.2 (through2@0.6.5, concat-with-sourcemaps@1.0.2, gulp-util@3.0.5)
├── gulp-minify-css@0.3.13 (memory-cache@0.0.5, through2@0.6.5, bufferstreams@0.0.2, vinyl-sourcemaps-apply@0.1.4, gulp-util@3.0.5, clean-css@3.0.10)
├── 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, tildify@1.0.0, v8flags@2.0.5, 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-sass@0.7.3 (map-stream@0.1.0, gulp-util@3.0.5, node-sass@0.9.6)

#5

I don’t know. I personally recommend installing Node.js using brew, so you don’t need to use sudo.


#6

Finally, I found solution :slight_smile: .

The solution is apply the following command:

sudo npm update -g cordova ionic