Hi,
I am attempting the build a hybrid application which uses the Cloud Foundry Mobile Services, and the Kapsel plugins. As Cloud Build in CF does not support hybrid applications I am attempting to build the application myself using cordova etc.
I have downloaded the kapsel plugins (latest versions) from the SAP download centre, but whenever I try to install the plugins I am presented with an error such as the one below. I've tried various cordova CLI flags but unfortunately they don't fix my problem and usually introduce problems of their own. I understand that it is because these particular modules are not in the public npm repository (I have also tried the sap npm repository).
Does anyone know how I can get around this without resorting to the old Neo Cloud Build?
Many thanks
Failed to install 'kapsel-plugin-logon': CordovaError: Failed to fetch plugin @sap/[email protected] via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
CordovaError: Error: npm: Command failed with exit code 1 Error output:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@sap%2fkapsel-plugin-ui5 - Not found
npm ERR! 404
npm ERR! 404 '@sap/[email protected]' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
EDIT: I should have also added that I tried to use the "SAP Repositories Management" too, but that had exactly the same problem as above
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
I have found the source of the problem. I was using cordova@10 but the plugins only support cordova@9. I have remade the project and reinstalled the plugins and it all appears to work now. Additionally, I specified all plugin dependencies in the `cordova plugin add` command so that it installed them all together.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.