Cordova工具集时出错

Cordova工具集时出错

本文介绍了构建ios vwith Cordova工具集时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2017社区版,并且仅使用vs文档中的步骤来使用macincloud服务进行远程构建.

I'm using Visual Studio 2017 community edition, and simply using steps in vs documentation to build remotely using macincloud service.

我基本上会遇到以下明显错误:

I basically get stuck with the following explicit error:

来自构建服务器的远程构建错误 https://xxxx.macincloud.com:3000/cordova -生成失败,并显示错误消息Remotebuild要求您的项目使用带有XCode 8.3的cordova-ios 4.3.0或更高版本.请更新您的cordova-ios版本.

Remote build error from the build server https://xxxx.macincloud.com:3000/cordova - Build failed with error Remotebuild requires your projects to use cordova-ios 4.3.0 or greater with XCode 8.3. Please update your cordova-ios version.

因此,很明显,这是在告诉我要更新cordova-ios,因为它在4.3.0以下使用.但是,我似乎无法找出一种更新它的方法.安装节点后,几乎所有使用npm命令行升级cordova的文档.命令是:

So it's clearly telling me to update cordova-ios as it's using below 4.3.0. However, I can't seem to figure out a way to update it. Almost all documentation to upgrade cordova using npm command line after installing node. The command is:

npm -g install cordova

但是,这给我一些有关[email protected]的警告,并且从不更新任何内容.如果我去Visual Studio并打开config.xml,它清楚地表明它正在使用Cordova Toolset 6.3.1,而cordova-ios是4.2.0.它只是不更新​​工具集.

However, this gives me some warnings about [email protected] and never updates anything. If I go to visual studio and open my config.xml, it clearly shows that it's using Cordova Toolset 6.3.1 and cordova-ios is 4.2.0. It's just not updating the toolset.

我找不到任何引用此错误的stackoverflow问题.我查看了vs扩展更新,但没有任何内容.我希望有人能帮帮忙.我不是唯一一个遇到这个问题的人.

I cannot find any stackoverflow question referencing this error. I have looked in to vs extension updates, but there is nothing there. I hope someone can help. I can't be the only one having this issue.

当我尝试从cli更新cordova时,这就是我得到的.我首先浏览到项目文件夹,也许那是错误的,但这是我的理解.这是输出:

Here is what I get when I try to update cordova from cli. I first browse to the project folder, maybe that's wrong, but that's my understanding. Here is the output:

npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: Use uuid module instead
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
 to increase limit
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\ProgramData\Microsoft\VisualStudio\MDA\10a7b933\taco-toolset-6.3.1\cordova -> C:\ProgramData\Microsoft\VisualStudio\M
DA\10a7b933\taco-toolset-6.3.1\node_modules\cordova\bin\cordova
[email protected] C:\ProgramData\Microsoft\VisualStudio\MDA\10a7b933\taco-toolset-6.3.1\node_modules\cordova
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], configsto
[email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected],
 [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
.1, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], properties-par
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],
 [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], cord
[email protected], [email protected], [email protected], [email protected])

cordova -v给我6.3.1,不会更新.npm cordova -v给我2.15.10

cordova -v gives me 6.3.1, doesn't update.npm cordova -v gives me 2.15.10

有什么建议吗?

推荐答案

好,所以我终于可以更新了.我从消息中注意到它正在使用以下路径:C:\ ProgramData \ Microsoft \ VisualStudio \ MDA \ 10a7b933 \ taco-toolset-6.3.1 \ node_modules \ cordova

Ok, so I was finally able to update. I noticed from the messages that it was using the path: C:\ProgramData\Microsoft\VisualStudio\MDA\10a7b933\taco-toolset-6.3.1\node_modules\cordova

因此,我转到Windows资源管理器并手动删除了此文件夹.然后,我再次安装了cordova,终于成功了!关于炸玉米饼的工具集有些问题.

So I went to windows explorer and deleted this folder manually. Then I installed cordova again and it finally worked! Something is off about taco-toolset.

这篇关于构建ios vwith Cordova工具集时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 15:14