# Mysterious failure to install cordova plugins

**URL:** <https://discuss.bitrise.io/t/mysterious-failure-to-install-cordova-plugins/19963>\
**Category:** Question & Answer\
**Created:** [April 29, 2022, 7:21pm UTC](https://discuss.bitrise.io/t/mysterious-failure-to-install-cordova-plugins/19963 "2022-04-29T19:21:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Textras](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@Textras](https://discuss.bitrise.io/u/Textras)\
**Post date:** [April 29, 2022, 7:21pm UTC](https://discuss.bitrise.io/t/mysterious-failure-to-install-cordova-plugins/19963/1 "2022-04-29T19:21:43Z")

</div>

My builds have mysteriously started failing because my cordova plugins are not getting installed. This is what the installation logs look like for each plugin:

> (node:4558) [DEP0128] DeprecationWarning: Invalid ‘main’ field in ‘/Users/vagrant/git/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 “[GitHub - CodeWithOz/cordova-plugin-googlemaps: Google Maps plugin for Cordova](https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes)”

fetch: Installing [GitHub - CodeWithOz/cordova-plugin-googlemaps: Google Maps plugin for Cordova](https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes) to /Users/vagrant/git

Running command: npm install [GitHub - CodeWithOz/cordova-plugin-googlemaps: Google Maps plugin for Cordova](https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes) --production --save-exact

Command finished with error code 0: npm install,[GitHub - CodeWithOz/cordova-plugin-googlemaps: Google Maps plugin for Cordova](https://github.com/CodeWithOz/cordova-plugin-googlemaps#feature-exclude-nodes,--production,--save-exact)

Failed to fetch plugin [GitHub - CodeWithOz/cordova-plugin-googlemaps: Google Maps plugin for Cordova](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 588 packages in 14s

The last build that worked was almost exactly 2 days ago from now, and I didn’t change anything in the build process. Did something change on bitrise, like the default nodejs version or something else?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [May 29, 2022, 7:22pm UTC](https://discuss.bitrise.io/t/mysterious-failure-to-install-cordova-plugins/19963/2 "2022-05-29T19:22:14Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
