cordova platform add android --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 android --save
(exit code 1):
Using cordova-fetch for cordova-android@~6.2.2
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.codingate.fiftymoves
Name: 50Moves
Activity: MainActivity
Android target: android-25
Subproject Path: CordovaLib
Android project created with cordova-android@6.2.3
Installing "com-sarriaroman-photoviewer" for android
Subproject Path: CordovaLib
Installing "cordova-plugin-compat" for android
Installing "cordova-plugin-console" for android
Installing "cordova-plugin-device" for android
Installing "cordova-plugin-facebook4" for android
Subproject Path: CordovaLib
Installing "cordova-plugin-file" for android
Plugin dependency "cordova-plugin-compat@1.1.0" already fetched, using
that version.
Dependent plugin "cordova-plugin-compat" already installed on android.
The Android Persistent storage location now defaults to "Internal".
Please check this plugin's README to see if your application needs any
changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an
"AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility"
/>"
to config.xml in order for the application to find previously stored
files.
Installing "cordova-plugin-file-transfer" for android
Plugin dependency "cordova-plugin-file@4.3.3" already fetched, using
that version.
Dependent plugin "cordova-plugin-file" already installed on android.
Installing "cordova-plugin-inapppurchase" for android
Installing "cordova-plugin-network-information" for android
Installing "cordova-plugin-screen-orientation" for android
Failed to install 'cordova-plugin-screen-orientation': Error
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:205:33
at _rejected
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:864:24)
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:890:30
at Promise.when
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:1142:31)
at Promise.promise.promiseDispatch
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:808:41)
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:624:44
at runSingle
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:137:13)
at flush
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:95:7)
at process._tickCallback (internal/process/next_tick.js:161:9)
Error: Failed to fetch plugin
https://github.com/vstirbu/PromisesPlugin.git via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module