2
votes

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:

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.

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

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.

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.

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 gives me 6.3.1, doesn't update. npm cordova -v gives me 2.15.10

Any advice?

2

2 Answers

3
votes

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

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.

2
votes

If you double-click on your config.xml file, it should open as a tabbed form page in Visual Studio 2017. Under the "Toolset" tab, you have a choice between Cordova 6.3.1 and your global cordova version. Try again to install Cordova 7.0.1 globally. Use Windows Powershell running as Administrator.

PS D:\Projects\Current\Cordova_API_client\cordova> npm cordova -v
5.0.0

PS D:\Projects\Current\Cordova_API_client\cordova> npm install -g cordova
npm WARN deprecated [email protected]: Use uuid module instead
C:\Users\keith\AppData\Roaming\npm\cordova -> C:\Users\keith\AppData\Roaming\npm\node_modules\cordova\bin\cordova
added 607 packages in 58.432s

PS D:\Projects\Current\Cordova_API_client\cordova> cordova -v
? May Cordova anonymously report usage statistics to improve the tool over time? Yes

Thanks for opting into telemetry to help us improve cordova.
7.0.1

PS D:\Projects\Current\Cordova_API_client\cordova>

Now you should be able to Go to config.xml > Toolset > and choose your globally installed Cordova, in Visual Studio.