I have this problem during adding cordova-plugin-code -push
app# ionic cordova plugin add cordova-plugin-code-push
cordova plugin add cordova-plugin-code-push --save
Running command - failed!
[ERROR] An error occurred while running cordova plugin add
cordova-plugin-code-push --save (exit code 1):
Error: Failed to fetch plugin cordova-plugin-code-push@^1.9.8-beta 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! code ETARGET
npm ERR! notarget No matching version found for ansi-styles@2.2.0
npm ERR! notarget In most cases you or one of your dependencies are
requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-10-02T17_20_42_654Z-debug.log