Ioniv-v4 : ionic cordova plugin add cordova-plugin-googleplus Not working

帅比萌擦擦* 提交于 2019-12-07 17:18:26
HaSnen Tai

Seems Like Network Problem

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. 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.

Google plus is decommissioned, and since you are on ionic4 you need google plus beta version to be used

check your package.json for "@ionic-native/google-plus": "5.0.0-beta.0",

and import it like this import { GooglePlus } from '@ionic-native/google-plus/ngx';

I know it's late ... but I got the solution ... if anyone encounters this type of issue..follow the steps below ....

  ** Reason: ** This is happening when you have installed NPM locally and globally.

  Solution

  1. Uninstall NPM, NODE and Ionic a globally.
  2. Clear all temporary files and local files related to npm and node
  3. Reinstall Node and NPM

Always do not install NPM globally.

Install dependencies in the local node_model folder. In global mode (i.e., with the -g or - command), it establishes the current package reference (i.e., the current working directory) as a global package. By default, the npm install package will install all the modules listed in the json as dependency.

NPM Documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!