I start with adding plugin dependencies with https://...... on package.json (no plugin references on config.xml) and no platforms or plugins installed then I run "cordova platform ios".
It installs the plugins without any problem, but changes config.xml and package.json plugin references from https to git+https, and ssh to git+ssh.
Failed to restore plugin "cordova-plugin-document-viewer" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin git+https://github.com/kas84/cordova-plugin-document-viewer.git via registry