I have an existing Ionic application where I have had all of Android, iOS, and Windows platforms included. I have left out Windows for a while, but now have the need to build a Windows 10 UWP version.
I thought since I added the Windows platform a long time ago (when Ionic in Beta and on a different Windows machine), I’d first remove it and then add it back (as it didn’t build anyway).
I Now seem get an error that sees to be related to the
cordova-plugin-wkwebview-engine that I added for iOS.
I have Visual Studio 2017 installed (and all the Cordova etc packages)…
Here is the error I get…
ionic cordova platform add windows --info > cordova platform add windows --save ✖ Running command - failed! [ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly. [ERROR] An error occurred while running cordova platform add windows --save (exit code 1): You have been opted out of telemetry. To change this, run: cordova telemetry on. Using cordova-fetch for cordova-windows@~5.0.0 Adding windows project... Creating Cordova Windows Project: Path: platforms\windows Namespace: com.myapp Name: Mayapp Windows project created with email@example.com The following image was skipped because it has an unsupported size (undefinedxundefined): resources\android\icon\drawable-xhdpi-icon.png Installing "cordova-plugin-app-version" for windows Installing "cordova-plugin-compat" for windows Installing "cordova-plugin-console" for windows Installing "cordova-plugin-device" for windows Installing "cordova-plugin-email-composer" for windows Installing "cordova-plugin-file" for windows Plugin dependency "firstname.lastname@example.org" already fetched, using that version. Dependent plugin "cordova-plugin-compat" already installed on windows. Installing "cordova-plugin-ios-disableshaketoedit" for windows Installing "cordova-plugin-network-information" for windows Installing "cordova-plugin-splashscreen" for windows Installing "cordova-plugin-statusbar" for windows Installing "cordova-plugin-whitelist" for windows Installing "cordova-plugin-x-socialsharing" for windows Installing "cordova-plugin-x-toast" for windows Installing "cordova-plugin-zip" for windows Plugin dependency "email@example.com" already fetched, using that version. Dependent plugin "cordova-plugin-file" already installed on windows. Installing "cordova-sqlite-storage" for windows installing external dependencies via npm npm install of external dependencies ok Installing "ionic-plugin-keyboard" for windows Discovered plugin "cordova-plugin-wkwebview-engine" in config.xml. Adding it to the project Failed to restore plugin "cordova-plugin-wkwebview-engine" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin cordova-plugin-wkwebview-engine@git+https://github.com/driftyco/cordova-plugin-wkwebview-engine.git via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: cmd: Command failed with exit code 1 Error output: npm ERR! git fetch -a origin (https://github.com/driftyco/cordova-plugin-wkwebview-engine.git) fatal: Unable to find remote helper for 'https' npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "cordova-plugin-wkwebview-engine@git+https://github.com/driftyco/cordova-plugin-wkwebview-engine.git" "--save" npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm ERR! code 128 npm ERR! Command failed: git -c core.longpaths=true fetch -a origin npm ERR! fatal: Unable to find remote helper for 'https' npm ERR! npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! H:\dev\Pitram\mobileapps\pitramconnect\trunk\node_modules\npm-debug.log The following image was skipped because it has an unsupported size (undefinedxundefined): resources\android\icon\drawable-xhdpi-icon.png --save flag or autosave detected Saving windows@~5.0.0 into config.xml file ...
My Ionic info is
ionic info global packages: @ionic/cli-plugin-proxy : 1.3.0 @ionic/cli-utils : 1.4.0 Cordova CLI : 7.0.1 Ionic CLI : 3.4.0 local packages: @ionic/app-scripts : 1.3.7 @ionic/cli-plugin-cordova : 1.4.0 @ionic/cli-plugin-ionic-angular : 1.3.1 Cordova Platforms : android 6.1.2 ios 4.3.1 windows 5.0.0 Ionic Framework : ionic-angular 3.3.0 System: Node : v6.11.0 OS : Windows 10 Xcode : not installed ios-deploy : not installed ios-sim : not installed npm : 3.10.10
Does anyone have any idea why I am getting this error and how I can get around it?
Thanks in advance