ionic-framework - 离子实时更新(应用更新插件)
问题描述
我试图在我的项目中实现这个插件和功能,但是文档太差了,互联网上的所有教程都使用了 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 系统上。
解决方案
我昨天有类似的问题。尝试使用 flag 安装插件--unsafe-perm=true
。
推荐阅读
- c - Gstreamer 重启 EOS 元素
- python - 使用 Python 解析 EDI X12 文件
- prometheus - 如何在 promethues 的 source_labels 中给出正则表达式?
- git - 从远程 git-repo 获取特定文件/文件夹的 Commit-Hash
- css - 带有 Web 组件的页面的自定义滚动条
- javascript - 如何在 node.js 中设置纳秒精度 mtime?
- reactjs - react-redux:更新嵌套状态中的特定位置
- r - 如何计算 v1 v2 v3 并将其显示为百分比?
- python - 如何组装 psutil 的多平台发行版?
- r - 根据R中其他列中的字符串模式更改列中的单个单元格