首页 > 解决方案 > 离子实时更新(应用更新插件)

问题描述

我试图在我的项目中实现这个插件和功能,但是文档太差了,互联网上的所有教程都使用了 Cordova Hot Code Push 插件。

不幸的是,互联网上每个关于它的教程都使用 Cordova Hot Code Push CLI 客户端的安装,不断收到错误: cordova hot code push error postinstall

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ngrok@2.3.0 postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ngrok@2.3.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/midias14/.npm/_logs/2018-06-06T19_45_57_204Z-debug.log

并且无法解决,我正在努力实施。

手动操作有什么帮助吗?

我在 Ionic3,Ubuntu 系统上。

标签: ionic-frameworkionic2ionic3

解决方案


我昨天有类似的问题。尝试使用 flag 安装插件--unsafe-perm=true


推荐阅读