A CLI tool for fetching Cordova plugins and platforms from Git repositories and npm registries. Currently at version 5.0.0, with low release cadence (last update ~2024). Key differentiator: integrates with Cordova's plugin/platform resolution logic, supporting semver and git references. Alternative to manual npm install or git clone for Cordova development.
npm install cordova-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to fetch a Cordova plugin from npm (specified as package@version) into a local directory using the default export.
Use import fetch from 'cordova-fetch' or const fetch = require('cordova-fetch').default.Upgrade Node.js to >=20.9.0 and npm to >=8.1.0.
Use https:// git URLs instead of git:// or ssh://.
Run npm login before fetching private packages.
Ensure 'source' is a local directory when using --link.
Use const fetch = require('cordova-fetch').default;Use format like '@scope/plugin@version' or 'git+https://url.git'.
Check internet connection, proxy settings, and registry URL.