Npm error trying to install Google Maps native plugin

I’m trying to implement the google maps trying (i did it another times) but when i try to do it i get this error:

> cordova plugin add --save
× Running command - failed!
[ERROR] An error occurred while running cordova plugin add  (exit code 1):

        Error: Failed to fetch plugin via
        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 ( 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"
        "" "--save"
        npm ERR! node v6.10.3
        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!     <>

        npm ERR! Please include the following file with any support request:
        npm ERR!     F:\xampp\htdocs\IONICTRABAJO\ProyectoBooAdv\node_modules\npm-debug.log

I’m trying with this command

$ ionic cordova plugin add --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"
$ npm install --save @ionic-native/google-maps

I’m forgetting something?

Try to replace https with http.

Finally i installed it following the cordova docs. Thanks

Please share the successful command.

Hope this help someone

cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="APIKEY" --variable API_KEY_FOR_IOS="APIKEY"

npm install --save @ionic-native/google-maps