'Failing to install cordova plugins
I'm suddenly getting an error on my CI system when installing plugins to build my cordova app. I get an error like this for each of the plugins that needs to be installed:
> (node:2491) [DEP0128] DeprecationWarning: Invalid 'main' field in '/home/runner/work/{repo}/node_modules/objectorarray/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes"
fetch: Installing https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes to /home/runner/work{repo}
Running command: npm install https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes --production --save-exact
Command finished with error code 0: npm install,https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes,--production,--save-exact
Failed to fetch plugin https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Could not determine package name from output:
added 3 packages, and audited 587 packages in 5s
This is the output when I specify the --verbose flag when installing the plugins. This happens both when building using Bitrise and GitHub Actions, so it doesn't appear to be specific to any particular platform. I've checked the status of both services, as well as the status of npm, and there's been no reported incident that would cause this. Moreover I tried installing plugins locally on my system and the problem did NOT happen. So it would seem that there's something up with the CI config. Any ideas what could be the problem?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
