Ionic3:无法安装打印机插件

时间:2019-05-23 16:24:40

标签: ionic-framework ionic3 ionic-native

我正在使用Ionic3做一个应用程序来打印东西。我遵循了Printer的Ionic文献。

我跑步后

ionic cordova plugin add cordova-plugin-printer

我运行命令:

npm install @ionic-native/printer

然后我得到:

npm WARN @ionic-native/printer@5.6.0 requires a peer of rxjs@^6.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/printer@5.6.0 requires a peer of @ionic-native/core@^5.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

有人已经有这个问题了吗?

谢谢!

1 个答案:

答案 0 :(得分:1)

首先安装那些依赖项

npm install rxjs@6.3.0
npm i @ionic-native/core