[英]I can’t install ionic on Mac OS X 10.10.3
My Versions are : 我的版本是:
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)
When I type ionic -v, I get 当我输入离子-v时,我得到了
jce010:~ Tareqalmasri$ ionic -v
-bash: ionic: command not found
Finally, I found solution :) . 最后,我找到了解决方案:)。
The solution is apply the following command: 解决方案是应用以下命令:
sudo npm update -g cordova ionic
sudo npm update -g cordova ionic
Homebrew solved it in my case Homebrew解决了我的问题
It took me hours to install ionic, frustrating especially on a very sunny day >( 我花了几个小时安装离子,特别是在阳光灿烂的日子里令人沮丧>(
Nothing worked: 没有用:
What finally solved everything: I installed node using " Homebrew ". 什么最终解决了一切:我使用“ Homebrew ”安装节点。 After that all commands worked perfectly:
之后所有命令都完美无缺:
npm install -g cordova ionic
ionic start myApp tabs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.