Cordova instalation problem

When i try to install anything to cordova i have always after first run of command over framework7 error like this

(mac os Big Sur, F7 v6)

command: framework7 cordova platform add android
error:

Using cordova-fetch for cordova-android@^9.0.0
Failed to fetch platform cordova-android@^9.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
CordovaError: CordovaError: Could not determine package name from output:
added 21 packages, and audited 109 packages in 2s

when i’m working directly over cordova then its ok, but as this problem, i cant create any new project as framework7 not allow to continue without platform selected

full error code

Using cordova-fetch for cordova-android@^9.0.0
Failed to fetch platform cordova-android@^9.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
CordovaError: CordovaError: Could not determine package name from output:
added 21 packages, and audited 109 packages in 2s

8 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
(node:649) UnhandledPromiseRejectionWarning: Error: Shell command exit with non zero code: 1
at ChildProcess. (/usr/local/lib/node_modules/framework7-cli/node_modules/exec-sh/lib/exec-sh.js:73:15)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:649) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:649) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

on the windows 10 same problem

√ Generating package.json
√ Creating required folders structure
√ Installing NPM Dependencies
√ Installing NPM Dev Dependencies
× Error creating Cordova project
Failed to fetch plugin [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: CordovaError: Could not determine package name from output:
added 2 packages, and audited 3 packages in 1s

found 0 vulnerabilities

Failed to fetch plugin [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: CordovaError: Could not determine package name from output:
added 2 packages, and audited 3 packages in 1s

found 0 vulnerabilities

Are you connected to internet while creating the project?

Yes, and was try it on different networks

I always get this error while installing plugins, while my internet connection is working.

I just run “npm install” commands twice and never had any problems with it. Seems to be some sort of cache in the npm registry.

3 Likes