aquto / cordova-plugin-vpn

Other
37 stars 23 forks source link

Problem installing plugin iOnic #18

Open JerS-vzla opened 6 years ago

JerS-vzla commented 6 years ago

Greetings, I'm trying to install the plugin and throws me the following error

$ ionic cordova plugin add cordova-plugin-vpn

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

Error: Registry returned 404 for GET on https://registry.npmjs.org/cordova-plugin-vpn

olsikarapici commented 6 years ago

@JerS-vzla I managed to install it correctly in ionic. Probably you should first install the node module for this plugin, check https://www.npmjs.com/package/cordova-plugin-vpn/tutorial. Afterwards you could install the plugin in the root directory of your project with the command that you tried. I had to add also a --variable ALLOWIFI="yourValue" because apparently the plugin uses a variable to define if you want to allow vpn connection with WIFI. Another way would be to install it direclty from repostitory. https://github.com/aquto/cordova-plugin-vpn.git. Still need to add the --variable. Hope it helped.