SOLVED: Ionic package Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.file

Hi Guys

I am getting this error when building for android with ionic package:
Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.file

If i test my project both cordova plugin list and ionic plugin list the listed plugin is not in list.
Below is my plugin list:
cordova-plugin-camera 2.1.0 "Camera"
cordova-plugin-console 1.0.2 "Console"
cordova-plugin-crosswalk-webview 1.6.1 "Crosswalk WebView Engine"
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-file 4.1.1 "File"
cordova-plugin-file-transfer 1.5.0 "File Transfer"
cordova-plugin-inappbrowser 1.3.0 "InAppBrowser"
cordova-plugin-screen-orientation 1.4.0 "Screen Orientation"
cordova-plugin-splashscreen 3.1.0 "Splashscreen"
cordova-plugin-statusbar 2.1.0 "StatusBar"
cordova-plugin-whitelist 1.2.1 "Whitelist"
ionic-plugin-keyboard 1.0.8 "Keyboard"
phonegap-plugin-push 1.6.0 “PushPlugin”

IOS does not return any errors… I have tried to remove android project and add it again without any luck.

Thanks in advance.

I had this and to resolve it I edited the package.json file and changed:

“cordovaPlugins”: [
…
“org.apache.cordova.inappbrowser”,
…
]

to

“cordovaPlugins”: [
…
“cordova-plugin-inappbrowser”,
…
]

2 Likes

I followed benegde instructions but I removed the plugin cordova-plugin-file-transfer instead, then I edited package.json, then added back cordova-plugin-file-transfer. My build was successful thereafter. Cheers :slight_smile:

1 Like

Hey Guys

Thanks for the help… I did not look in my package.json. There was an extra line with the wrong component.

Many thanks for helping on my way.

I have same problem, but i think problem start from config.xml in plugin value

<feature name="InAppBrowser">
    <param name="id" value="org.apache.cordova.inappbrowser"/>
  </feature>
  <feature name="StatusBar">
    <param name="id" value="org.apache.cordova.statusbar"/>
  </feature>

can I simply remove it? or i must change . in - ?