离子安装错误!! Ubuntu的

时间:2016-11-29 07:17:52

标签: ionic-framework ionic2

我无法安装Ionic,我安装了cordova 6.4.0,我的npm 4.0.2node v6.9.1 我之前安装了Ionic,我已卸载,现在无法使用npm install -g ionic再次安装它。我得到此依赖项错误如下:

 ionic2@2.0.0-rc.1
   ├── UNMET PEER DEPENDENCY @angular/common@2.0.0
   ├── UNMET PEER DEPENDENCY @angular/compiler@2.0.0
   ├── UNMET PEER DEPENDENCY @angular/core@2.0.0
   ├── UNMET PEER DEPENDENCY @angular/platform-browser@2.0.0
   └── UNMET PEER DEPENDENCY typescript@^2.0.2

npm WARN @angular/platform-browser-dynamic@2.1.0 requires a peer of @angular/core@2.1.0 but none was installed.
npm WARN @angular/platform-browser-dynamic@2.1.0 requires a peer of @angular/common@2.1.0 but none was installed.
npm WARN @angular/platform-browser-dynamic@2.1.0 requires a peer of @angular/compiler@2.1.0 but none was installed.
npm WARN @angular/platform-browser-dynamic@2.1.0 requires a peer of @angular/platform-browser@2.1.0 but none was installed.
npm WARN @angular/compiler-cli@0.6.2 requires a peer of typescript@^2.0.2 but none was installed.
npm WARN @angular/tsc-wrapped@0.3.0 requires a peer of typescript@^2.0.2 but none was installed.
npm WARN tsickle@0.1.7 requires a peer of typescript@^2.0.0 || ^2.1.0-dev but none was installed.

请有人帮忙!!!!

1 个答案:

答案 0 :(得分:0)

您好尝试从here安装nvm。 然后运行以下命令:

nvm install 5.11.0

等待节点5.11.0安装,然后:

nvm use 5.11.0

现在,在使用节点5.11.0时运行:

npm i -g ionic cordova

这是我的设置,我能够使用ionic2 RC3。