Tag: cordova

Phonegap 3.3生成Android失败

我试图build立一个项目,但是当我input: cordova build android发生以下错误: Generating config.xml from defaults for platform "android" Preparing android project Compiling app on platform "android" via command "../platforms/android/cordova/build" Error: An error occurred while building the android project.Error executing "ant debug -f "../platforms/android/build.xml"":BUILD FAILED /usr/local/Cellar/android-sdk/22.3/tools/ant/build.xml:932:The following error occurred while executing this line: /usr/local/Cellar/android-sdk/22.3/tools/ant/build.xml:950:null returned: 1 Total time: 18 seconds at ChildProcess. < […]

从npm下载Phonegap时出错

我试图通过下载phonegap: npm install -g phonegap但我不断收到一个错误,我不知道为什么。 我确定我已经下载了Node.JS。 npm ERR! notarget找不到兼容版本:cordova-lib @'lorinbeer / cordova-li b.git#pg.3.5.0' npm ERR! notarget有效的安装目标: npm ERR! notarget [“0.21.2”,“0.21.3”] npm ERR! 没有目标 npm ERR! notarget这很可能不是npm本身的问题。 npm ERR! notarget在大多数情况下,您或您的某个依赖项正在请求 npm ERR! 注意一个不存在的软件包版本。 npm ERR! 系统Windows_NT 6.2.9200 npm ERR! 命令“E:\ Program Files \ nodejs \\ node.exe”“E:\ Program Files \ nod ejs \ node_modules \ npm \ […]

cordova混合应用程序构build失败vs2013 up2(中国传统)

我用vs2013 up2为windows手机平台构build了cordova项目,并且收到如下的错误信息,但为ios&android构build是可以的。 (1)第一个标签之前的非空格。 我在第124行命令中find了js文件"C:\Users\xxx\AppData\Roaming\npm\node_modules\vs-mda\node_modules\cordova\node_modules\plugman\src\util\xml-helpers.js" var contents = fs.readFileSync(filename, 'utf-8').replace("\ufeff", ""); …在中国的传统环境中是失败的,当为windows phone平台build立WMAppManifest.xml文件有BOM代码的时候,所以会出现如下错误: 嚙踝蕭??xml version="1.0" encoding="utf-8"?> ,它应该是<?xml version="1.0" encoding="utf-8"?> 有什么想法可以解决它? 谢谢。

npm install -g cordova。 这么多的错误。 请帮助

我想开发一个使用cordova(PhoneGap)的应用程序。 我正在尝试使用“cordova文档”来安装cordova。 但是我总是在这些事情上低调。 我已经完成了这些步骤: 下载并安装Node.js 下载并安装一个git客户端 使用Node.js的npm工具安装cordova模块 而在第3步,我得到了很多错误。 我input了一个命令: C:> npm install -g cordova 我有这样的回应: C:\>npm install -g cordova npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node": "0.12.3","npm":"2.9.1"}) npm WARN engine cordova-js@3.9.0: wanted: {"node":"~0.10.x"} (current: {"node":" 0.12.3","npm":"2.9.1"}) npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bund led package wasn't found in unpacked tree npm […]

如何实现SailsJS + Phonegap / Cordova应用程序

已经审查: 如何从SailsJS和SailsJS phonegap 制作phonegap移动应用程序 ? ,但没有find真正的答案。 我想实现一个项目,后端是SailsJS,前端是:1)Web客户端; 2)PhoneGap客户端; 我查看了https://github.com/coderaven/sails-docs/blob/master/What-Is-Sails.md ,其中提到了PhoneGap / Cordova的使用情况,但同样没有提供实际的例子。 所以我会很感激,如果有人可以分享包括Sails和PhoneGap /cordova的样板例子,或者至less分享一些示例代码。

离子build立IOS没有什么,只是下降到下一行

当试图构build和运行离子项目时,如果没有构build项目或运行模拟器,就会失败(不输出)。 Zeeshans-MBP:my-reddit zeeshansabri11 $ ionic build iOS Zeeshans-MBP:my-reddit zeeshansabri11 $ ionic模拟ios 系统详细信息:Cordova CLI:5.3.3 Gulp版本:CLI版本3.9.0本地Gulp:Ionic版本:1.1.0 Ionic CLI版本:1.7.7 Ionic App Lib版本:0.6.3 ios-deploy版本:1.8.2 ios -sim版本:5.0.3操作系统:Mac OS X El Capitan Node版本:v5.0.0 Xcode版本:Xcode 7.1 Build版本7B91b 什么也没发生 我得到一些错误,并检查我的Udemy教练,我被告知,我安装我的节点使用sudo,所以我已经卸载完整的节点,离子和cordova,然后重新安装它现在我没有得到这些错误,但现在build立和仿真命令根本没有做任何事情。 我在论坛上看到类似的post,但似乎老,build议降级到一些真正的旧版本不知道它是否仍然有效。 顺便说一句:我是新的所有离子,cordova和节点,所以请容易我:)

离子不在Windows 7上安装 – 获取许多错误

我正在尝试安装Ionic时遇到此错误 $ npm install ionic cordova -g npm ERR! not a package C:\Users\Sridhar\AppData\Roaming\npm-cache\ansi-regex\2.0.0\package.tgz npm ERR! not a package C:\Users\Sridhar\AppData\Roaming\npm-cache\ansi-regex\2.0.0\package.tgz npm ERR! not a package C:\Users\Sridhar\AppData\Roaming\npm-cache\ansi-regex\2.0.0\package.tgz npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"4.2.2","npm":"2.14.7"}) npm ERR! not a package C:\Users\Sridhar\AppData\Roaming\npm-cache\ansi-regex\2.0.0\package.tgz npm ERR! not a package C:\Users\Sridhar\AppData\Roaming\npm-cache\ansi-regex\2.0.0\package.tgz npm ERR! not a package C:\Users\Sridhar\AppData\Roaming\npm-cache\delayed-stream\0.0.5\package.tgz npm ERR! […]

Ionic2安装后的离子安装

我试图安装Ionic2没有成功,所以我决定回到Ionic,但是在这个过程中出了问题,我不能重新安装离子和cordova。 之后sudo npm install -g cordova ionic ,我试图运行ionic ,得到: xx@xxx:~/dev$ ionic info module.js:328 throw err; ^ Error: Cannot find module 'xmlbuilder' at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/usr/local/lib/node_modules/ionic/node_modules/xml2js/lib/xml2js.js:12:13) at Object.<anonymous> (/usr/local/lib/node_modules/ionic/node_modules/xml2js/lib/xml2js.js:436:4) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) 我的版本是: xx@xxx:~/dev$ npm -v […]

安装PhoneGap插件:BarcodeScanner

我想在一个PhoneGap项目中安装BarcodeScanner插件 。 我已经阅读了自述文件中的自述文件,并且说它必须像这样使用PlugMan进行安装: Install a plugin —————- $ plugman install –platform <platform> –project <directory> –plugin <plugin> [–variable NAME=VALUE] Parameters: – platform <platform>: One of android, ios, blackberry10, wp7 or wp8 – project <directory>: Path reference to a cordova-generated project of the platform you specify – plugin <plugin>: One of a path reference to a local […]

PhoneGap的安装问题通过cmd nodejs

我试图安装电话使用cmd“npm install -g phonegap” 但是它没有安装并且给我安装失败的消息我粘贴了下面的cmd消息 所以如何设置代理设置(假设这是问题)哪个nodejs可以使用连接到互联网,完成phonegap的安装 我的系统configuration是Windows 7 64位 C:\ Windows \ system32> npm install -g phonegap npm http GET https://registry.npmjs.org/phonegap npm ERR! 错误:连接ECONNREFUSED npm ERR! 在errnoException(net.js:901:11) npm ERR! 在Object.afterConnect [ascomplete](net.js:892:19) npm ERR! {[错误:连接ECONNREFUSED] npm ERR! 代码:'ECONNREFUSED', npm ERR! errno:'ECONNREFUSED', npm ERR! 系统调用:'连接'} npm ERR! npm ERR! 如果你是代理人后面,请确保 npm ERR! '代理'configuration设置正确。 请参阅:'npm help config' npm […]