ionic 2 - 安装本机插件facebook

时间:2017-11-30 11:52:26

标签: angular ionic-framework

我正在安装facebook插件。当我运行命令sudo npm install --save @ionic-native/facebook时,我收到错误:unmet peer dependency ionic-native/core4.4.2 invalid

我的系统信息:

ios-deploy : 1.9.1
Node       : v6.12.0
npm        : 3.10.10
OS         : OS X El Capitan
Xcode      : Xcode 8.1 Build version 8T46g

1 个答案:

答案 0 :(得分:0)

1.> install ionic-native $ npm install ionic-native/core --save 
2.> Which type of peer dependency error is occurred  update an npm according to it Don’t use $ npm install Note - : becoze it install
current version & type script & other dependency is not compatible
with current version’s.
3.> so, to update npm use this command npm install npm@4 -g, here 4 =  which version u want to install(like 3,4,5 & etc).
4.> Then install peer dependency, which is not present. ex -  $ npm install ionic-native/@4.2.0 --save