Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when adding cordova plugin

Hi i am updating my android program on cordova to newest version 6.1.1.

But when adding new plugin it throws error.

Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.splashscreen.

How to solve this problem?

like image 357
Sattar Hummatli Avatar asked May 05 '16 14:05

Sattar Hummatli


People also ask

How do I add a plugin to config XML Cordova?

When adding plugins or platforms, use the --save flag to add them to config. xml. Ex: cordova platform add android --save. Existing projects can use cordova plugin save and cordova platform save commands to save all previously installed plugins and platforms into your project's config.

How do I update Cordova plugin in ionic?

Update Cordova Platforms versions are currently installed, run cordova platform list (If you are using Ionic, this information is also included in the ionic info output). This will return a list of “Installed platforms” with their version number: λ cordova platform list Installed platforms: android 5.0.


1 Answers

Solved problem myself .

In new version we have to type as following

// npm hosted (new) id
cordova plugin add cordova-plugin-splashscreen

// you may also install directly from this repo
cordova plugin add https://github.com/apache/cordova-plugin-splashscreen.git
like image 185
Sattar Hummatli Avatar answered Nov 08 '22 12:11

Sattar Hummatli