问题
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:
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 cordova@6.3.1
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.
Tell me if it's better, otherwise i'll guide you.
来源:https://stackoverflow.com/questions/47090042/visual-studio-2017-ios-build-failed-to-acquire-cordova