Tag: cordova

如何将现有的AngularJS 2 Web应用程序转换为Cordova应用程序?

我有一个与Angularjs 2.0构build的Web应用程序,我想将其转换为android apk并安装在android手机上并testing。 我没有任何build立移动原生应用程序或将webapp转换为原生应用程序的经验。 我已经通过如何将现有的AngularJSnetworking应用程序转换为cordova应用程序? 任何build议/指导将有所帮助。

无法validation第一个证书 – 离子应用上传错误

我已经开发了离子应用程序,并试图将其上传到离子云。 我检查了我的用户名和密码。 每当我运行ionic upload我得到一个错误: Error logging in: Error: unable to verify the first certificate Uploading app… WARN: ionic.project has been renamed to ionic.config.json, please rename it. An error occurred uploading the build: TypeError: Cannot read property 'map' of undefined TypeError: Cannot read property 'map' of undefined at Object.getDirectUploadKey (C:\Users\jhamn\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\upload.js:271:18) at C:\Users\jhamn\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\upload.js:41:21 at _fulfilled (C:\Users\jhamn\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:787:54) at […]

在Windows 8上安装phonegap的Prolem – 未满足的依赖

我遵循这个官方指南 。 它开始 npm install -g phonegap 它运行良好,直到最后,我得到了这个警告 : C:\Users\myname\AppData\Roaming\npm\phonegap -> C:\Users\myname\AppData\Roaming\ npm\node_modules\phonegap\bin\phonegap.js npm WARN unmet dependency C:\Users\myname\AppData\Roaming\npm\node_modules\phone gap\node_modules\cordova\node_modules\npm\node_modules\npm-registry-client requi res semver@'^2.2.1' but will load npm WARN unmet dependency C:\Users\myname\AppData\Roaming\npm\node_modules\phone gap\node_modules\cordova\node_modules\npm\node_modules\semver, npm WARN unmet dependency which is version 2.2.1 我试图运行phonegap create my-app命令,并得到这个错误 'phonegap' is not recognized as an internal or external command, operable program or […]

Apache cordova,无法创build应用程序

这是输出,知道我正在代理运行它,我指定代理设置。 npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080 然后我运行这个命令来创build一个新的应用程序在指定的文件夹“你好”。 C:\>cordova create hello com.example.hello HelloWorld Creating a new cordova project with name "HelloWorld" and id "com.example.hello" at location "C:\hello" Downloading cordova library for www… 这是错误的: Error: connect ETIMEDOUT at errnoException (net.js:904:11) at Object.afterConnect [as oncomplete] (net.js:895:19)

phonegap将不会安装或正常工作

在安装NodeJs并运行npm install -g phonegap之后,我得到的结果与应该是完全不同的格式: C:\Program Files\nodejs>npm install -g phonegap | > ws@0.4.31 install C:\Users\kyle David Krueger\AppData\Roaming\npm\node_modules \phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\engi ne.io\node_modules\ws > (node-gyp rebuild 2> builderror.log) || (exit 0) / C:\Users\kyle David Krueger\AppData\Roaming\npm\node_modules\phonegap\node_modul es\connect-phonegap\node_modules\socket.io\node_modules\engine.io\node_modules\w s>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_mo dules\node-gyp\bin\node-gyp.js" rebuild – > ws@0.4.31 install C:\Users\kyle David Krueger\AppData\Roaming\npm\node_modules \phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\sock et.io-client\node_modules\engine.io-client\node_modules\ws > (node-gyp rebuild 2> builderror.log) || (exit 0) – C:\Users\kyle […]

Visual Studio iOS部署失败,因为“边缘模块尚未预编译”

我正在尝试从Windows计算机部署HTML / CSS / JS Apache Cordova应用程序到Mac。 我相信他们正在通过remotebuild代理正常通信,但是当我尝试构build一个空白的项目在Mac上部署时,这个错误是在构build的最初阶段引发的: MDAVSCLI : error : The edge module has not been pre-compiled for node.js version v4.1.1. You must build a custom version of edge.node. Please refer to https://github.com/tjanczuk/edge for building instructions. 我已经按照链接,并已经find了解决办法,以解决这个错误,但这个链接似乎并不适用于我所做的。 我没有在我的代码中使用任何node.js函数,所以我很困惑,为什么这个错误发生。 我只是试图build立一个几乎空白的HTML页面,我仍然得到错误,无论我做这个页面有多简单。 我怎样才能解决这个问题? 什么是摆脱这个错误的最好方法,或者是因为错误提示预编译边缘与node.js版本4.1.1一起工作?

SignatureDoesNotMatch $ cordovaFileTransfer

我试图上传一个video到以前用$cordovaCapture录制的Amazon s3 。 捕获进程正常工作,作为响应,我得到的object : [MediaFile] 0: MediaFileend: 0 fullPath: "file:/storage/sdcard/DCIM/Camera/VID_20160919_144041.mp4" lastModified: null lastModifiedDate: 1474288843000 localURL: "cdvfile://localhost/persistent/DCIM/Camera/VID_20160919_144041.mp4" name: "VID_20160919_144041.mp4" size: 17098 start: 0 type: "video/mp4" __proto__: utils.extend.F length: 1 __proto__: Array[0] 然后,在我上传video之前,我向服务器请求身份validationURL ,如下所示: 的NodeJS getSignedUrl: function (filename, type, callback) { if (filename) { AWS.config.update({ accessKeyId: 'my_access_key', secretAccessKey: 'my_secret_access_key', region: 'my_region' }); var s3 = new […]

Cordova after_prepare挂钩在Android中成功,但在iOS中失败

我已经为我的Cordova build编写了一个after_prepare钩子,它从最终的构build中删除了node_modules文件夹: #!/usr/bin/env node /** * The node modules we want to remove from the build prior to building * @type {Array} */ var foldersToRemove = ["platforms/android/assets/www/node_modules", "platforms/ios/www/node_modules"]; var fse = require('fs-extra'); var path = require('path'); var rootdir = process.argv[2]; foldersToRemove.forEach(function(folder) { var rmFolder = path.join(rootdir, folder); fse.remove(rmFolder, function(err) { if (err) { return console.error(err); […]

告诉服务器,用户不再在互联网上

我是node.js的新手,尝试使用node.js和socket.io开发群聊。 我能够做群聊,也能够pipe理系统中的数据。 现在,我的问题是离线用户,即没有连接到互联网。 我有这个用户的连接stream,就好像我做receiverUserSocket.emit(“sendMsg”,数据)没有办法来validation这个用户是否收到消息。 是的,有一个事件。(“断开”),但我得到约30 – 40秒的延迟。 有什么方法可以确定我们要发送消息的用户是在线还是离线?

在node-sass@0.9.6安装脚本“node build.js”失败

我在项目上运行npm install时遇到这个错误。 以下有关此问题的其他信息, npm ERR! node-sass@0.9.6 install: `node build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@0.9.6 install script 'node build.js'. npm ERR! This is most likely a problem with the node-sass package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: […]