Visual Studio 2017 iOS Build Failed to acquire Cordova

1k Views Asked by At

I am building a mobile app using VS-TACO and I am trying to run my build on iOS.

When I try to build this app for iOS on a Windows host which is connected to a Mac with remotebuild agent, then I get following Error Message in Visual Studio 2017 on Windows Machine

"Remote build error from the build server https://macIpAddress:3000/cordova - Error: Failed to acquire Cordova version 6.3.1. TACO0204: Error installing cordova via npm. Exit Code: 1. See output for details. EShopper"

When i do "npm cordova -v" on my Mac, i see "5.4.2"

Windows OS: Windows 10 Mac OS Sierra I have given all required user permissions as suggested in taco.visualstudio

1

There are 1 best solutions below

29
On

Making npm cordova -v equals npm -v. It returns the npm's version, not the cordova version.

Cordova has to be installed on your PC(WINDOWS).

Could you do on your PC: cordova -v? If nothing is return : npm install -g [email protected] or npm install -g cordova@latest if you want the LATEST version of cordova.

Then you have to tell Visual studio to use the global version of cordova, for that: choose Global Cordova option in Config.xml editor UI. enter image description here

Tell me if it's better, otherwise i'll guide you.