我无法安装Ionic,我已经安装了cordova 6.4.0,我的npm 4.0.2,node 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.请帮帮忙!
发布于 2016-11-29 20:24:58
您好,尝试从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。
https://stackoverflow.com/questions/40859872
复制相似问题