Ioniv-v4:离子cordova插件添加cordova-plugin-googleplus无效 [英] Ioniv-v4 : ionic cordova plugin add cordova-plugin-googleplus Not working

查看:384
本文介绍了Ioniv-v4:离子cordova插件添加cordova-plugin-googleplus无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此(cordova-plugin-googleplus)命令无法与IONIC-v4-BETA一起使用,请在此问题上提供帮助,详情如下。

This (cordova-plugin-googleplus) command is not working with IONIC-v4-BETA, please help on this issue, details mentioned below.

命令


离子cordova插件添加cordova-plugin-googleplus - 变量
REVERSED_CLIENT_ID = REV_KEY

ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=REV_KEY

COMMAND ERROR

PS C:\ROOT\yaflix\Source\DEV\yaflix> ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=com.googleusercontent.apps.****************************************
> cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=com.googleusercontent.apps.********************************** --save
(node:10740) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read
npm ERR! network read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\JACK\AppData\Roaming\npm-cache\_logs\2018-08-08T05_42_29_829Z-debug.log
    at ChildProcess.whenDone (C:\Users\JACK\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:10740) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:10740) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
PS C:\ROOT\yaflix\Source\DEV\yaflix>

IONIC INFO

Ionic:

   ionic (Ionic CLI)          : 4.0.3 (C:\Users\JACK\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.0
   @angular-devkit/core       : 0.7.0-rc.3
   @angular-devkit/schematics : 0.7.0-rc.3
   @angular/cli               : 6.0.8
   @ionic/ng-toolkit          : 1.0.0
   @ionic/schematics-angular  : 1.0.1
Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0

System:

   NodeJS : v8.11.3 (C:\Program Files\nodejs\node.exe)
   npm    : 5.6.0
   OS     : Windows 10

Environment:

   ANDROID_HOME : C:\Users\JACK\AppData\Local\Android\Sdk\platform-tools

cordova plugins ls

cordova-plugin-device 2.0.2 "Device"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.0.2 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"


推荐答案


看起来像网络问题

Seems Like Network Problem

您是否更改了网络的内容?像DNS或什么?是这样请将其设置为默认设置这是网络问题只有在您更改了某些设置时才会发生,否则这个https问题可以做一件事吗?

Have you changed something with your network? Like DNS or something? is so please make it to default settings this is network issue it only happen when you have changed some settings or else this https issue can you do one thing?


  1. 运行此命令 npm config edit

  2. 这将在CMD中打开文件并找到注册表,它将类似于这个注册表= https://registry.npmjs.org/

  3. 如果有https则将其设为http,如果是注册表就像Github然后将其更改为 registry.npmjs.org /
    让我知道结果。

  1. Run this command npm config edit
  2. This will open the file in CMD and find the registry it will be something like this registry=https://registry.npmjs.org/
  3. If there is https then make it http and if the url for the registry is something like Github then change it to this registry.npmjs.org/.
    Let me know the result.

这篇关于Ioniv-v4:离子cordova插件添加cordova-plugin-googleplus无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆