I am trying to use a custom built plugin with my Ionic2 app. I am able to add the plugin using the command - cordova plugin add ‘plugin/path/on/local/machine’. However, when I try to build the app using the command - ionic build android, I am getting below error:
Discovered plugin “MyPluginName” in config.xml. Adding it to the project.
Failed to restore plugin “MyPluginName” from config.xml. You might need to try adding it again. Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/MyPluginName
Could someone help me resolve this issue?