Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to fetch plugin cordova-plugin-nativegeocoder via registry #43

Closed
Billmike opened this issue Mar 12, 2019 · 5 comments
Closed

Failed to fetch plugin cordova-plugin-nativegeocoder via registry #43

Billmike opened this issue Mar 12, 2019 · 5 comments

Comments

@Billmike
Copy link

When I run the command ionic cordova plugin add cordova-plugin-nativegeocoder, I get the following error:

Failed to fetch plugin cordova-plugin-nativegeocoder via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! Cannot read property 'match' of undefined

ionic-angular: v3.6.1

@sebastianbaar
Copy link
Owner

Hey @Billmike,

try to run the command with a specified version number
ionic cordova plugin add [PLUGIN_ID]@[VERSION]

For example:
ionic cordova plugin add cordova-plugin-nativegeocoder@3.1.3

Cheers

@Billmike
Copy link
Author

Hey @sebastianbaar I ran that command, but I'm still getting the same error

Failed to fetch plugin cordova-plugin-nativegeocoder@3.2.0 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! Cannot read property 'match' of undefined

@sebastianbaar
Copy link
Owner

Are you able to download any other plugin? I tried in different networks and got no error. It's neither a problem with npm nor with the plugin.

@Billmike
Copy link
Author

Yeah, I'm able to download other plugins. I downloaded the cordova-plugin-geolocation just before. I can also install the @ionic-native/native-geocoder library from npm as well.

@Billmike
Copy link
Author

So it works when I delete my package-lock.json file. Closing this now. Thanks for your time @sebastianbaar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants