Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] An error occurred while running subprocess cordova. #553

Open
Freeman-Dogbo opened this issue Apr 6, 2021 · 6 comments
Open

[ERROR] An error occurred while running subprocess cordova. #553

Freeman-Dogbo opened this issue Apr 6, 2021 · 6 comments
Milestone

Comments

@Freeman-Dogbo
Copy link

Bonjour, voilà environ 2 semaines je ne trouve pas de solution à mon problème j'ai besoin d'aide svp

C:\Users\LENOVO\ProjetIonic>ionic cordova platform add android

cordova.cmd platform add android
C:\Users\LENOVO\AppData\Roaming\npm\node_modules\cordova\node_modules\windows-release\node_modules\execa\index.js:347
throw err;
^

Error: Command failed: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption
ou externe, un programme ex�cutable ou un fichier de commandes.

at makeError (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\cordova\node_modules\windows-release\node_modules\execa\index.js:174:9)
at Function.module.exports.sync (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\cordova\node_modules\windows-release\node_modules\execa\index.js:338:15)
at windowsRelease (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\cordova\node_modules\windows-release\index.js:39:19)
at osName (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\cordova\node_modules\os-name\index.js:39:18)
at new Insight (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\cordova\node_modules\insight\lib\index.js:37:13)
at new RelentlessInsight (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\cordova\src\telemetry.js:31:1)
at Object.<anonymous> (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\cordova\src\telemetry.js:39:15)
at Module._compile (node:internal/modules/cjs/loader:1092:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
at Module.load (node:internal/modules/cjs/loader:972:32) {

forum d'aide
forum d'aide

code: 1,
stdout: '',
stderr: "'powershell' n'est pas reconnu en tant que commande interne\r\n" +
'ou externe, un programme ex�cutable ou un fichier de commandes.\r\n',
failed: true,
signal: null,
cmd: 'powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption',
timedOut: false
}
[ERROR] An error occurred while running subprocess cordova.

    cordova.cmd platform add android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.
@breautek
Copy link
Contributor

breautek commented Apr 6, 2021

Moving this to cordova-cli repo, as it appears to have to do with the cordova main executable... definitely not related to cordova-ios.

Can you also fill out the version information that you removed from the template?

  • OS Version
  • Node Version
  • NPM Version
  • Cordova Version

Also can you confirm if this occurs without using the Ionic cli? Install cordova directly and create a cordova project...

npm install cordova -g
cordova create testProject
cd testProject
cordova platform add android

Thanks

@breautek breautek transferred this issue from apache/cordova-ios Apr 6, 2021
@JCastroPalma
Copy link

stderr: "'powershell' n'est pas reconnu en tant que commande interne \ r \ n" +
buenas tardes
alguien que me ayude a resolver este problema
ese error lo arroja Ionic Repair

@mle1989972
Copy link

Hello,
I have the same issue than Freeman-Dogbo.
erreur cordova

It tells me that "powershell" is not recognize in internal or external command and then the error message came.

I thing i have to edit the variable environment path for powershell but i don't know how.
variable d'environnement
e environment path for powershell but i don't know how.

Do you have a clue to do that please?

Thanks for your help.

@Schahineze-lairedj
Copy link

i have this prob in system macOS
[ERROR] An error occurred while running subprocess cordova.

    cordova platform add ios@latest --save exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more
    information.

@dpogue
Copy link
Member

dpogue commented Dec 14, 2023

This sounds like this issue: sindresorhus/windows-release#27

@dpogue dpogue added this to the 13.0.0 milestone Jun 18, 2024
@dpogue
Copy link
Member

dpogue commented Jun 18, 2024

This should be resolved by dropping the telemetry code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants