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

ionic state reset: Referencing a plugin that doesn't exist causes exception in Ionic CLI Version: 2.0.0-beta.24 #914

Closed
spikehardin opened this issue Apr 7, 2016 · 2 comments

Comments

@spikehardin
Copy link

If a plugin is not found (returns 404), ionic CLI throws an exception on ionic state reset rather than passing along the error message from cordova.

ionic state reset
WARN: ionic.config.js has been deprecated, you can remove it.
WARN: ionic.config.js has been deprecated, you can remove it.
Removed platforms and plugins
Attempting to restore your Ionic application from package.json

Restoring Platforms

cordova platform add ios

Restore platforms is complete

Restoring Plugins

cordova plugin add cordova-plugin-statusbar
cordova plugin add ionic-plugin-keyboard
cordova plugin add org.apache.cordova.network-information
Caught exception:
 undefined

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

cordova plugin add org.apache.cordova.network-information
Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.network-information

Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
ios-deploy version: 1.8.5
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.2
Xcode version: Xcode 7.3 Build version 7D175

@jgw96
Copy link
Contributor

jgw96 commented May 2, 2016

Hello! Thanks for opening an issue with us. We are currently in the process of deprecating the ionic state commands in favor of doing it the cordova way. https://cordova.apache.org/docs/en/latest/platform_plugin_versioning_ref/index.html You can keep up with the status of this on #904 . Thanks for using Ionic!

@jgw96 jgw96 closed this as completed May 2, 2016
@surya474
Copy link

surya474 commented Jul 1, 2016

can any body tell me how to solve this issue i am also getting
"Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.network-information"
error while trying to add network plug-in

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

3 participants