1

I´ve been trying to validate the installation of flutter in my computer but when i use flutter --version command it show the next output.

flutter : Error executing program 'git.exe': Access is denied
Line: 1 Char: 1
+ flutter --version
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Execution error is denied.) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

C:\dev\flutter\bin\internal\update_engine_version.ps1: 53 Char: 11
+ } elseif (git -C "$flutterRoot" ls-files bin/internal/engine.version) ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
In C:\dev\flutter\bin\internal\update_engine_version.ps1: 53 Character: 11
+ } elseif (git -C "$flutterRoot" ls-files bin/internal/engine.version) ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : NativeCommandFailed
 
Error: Unable to determine engine version...

I have tried to download again the flutter zip, i´ve al ready have the enviroment variable set in tha PATH, changing the path where i installed it but nothing works. why does it says access denied. I would apreccite any help.

Spanish translation:

He estado intentando validar la instalación de flutter en mi computadora, pero cuando uso el comando flutter --version muestra el siguiente resultado.

flutter : Error al ejecutar el programa 'git.exe': Acceso denegadoEn 
En línea: 1 Carácter: 1
+ flutter --version
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Error al ejecut...eso denegadoEn :String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
C:\dev\flutter\bin\internal\update_engine_version.ps1: 53 Car cter: 11
+ } elseif (git -C "$flutterRoot" ls-files bin/internal/engine.version) ...
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
En C:\dev\flutter\bin\internal\update_engine_version.ps1: 53 Car cter: 11
+ } elseif (git -C "$flutterRoot" ls-files bin/internal/engine.version) ...
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : NativeCommandFailed
 
Error: Unable to determine engine version... 

He intentado descargar de nuevo el zip de Flutter. Ya tengo la variable de entorno configurada en PATH y he cambiado la ruta donde lo instalé, pero nada funciona. ¿Por qué aparece el mensaje "acceso denegado"? Agradecería cualquier ayuda.

I've tried to move tha installation, add and modify the PATH variable. I need to be able to run any flutter command on cmd.

4
  • Did you try to execute "git --version" in the cmd? If you also see "Access is denied" here, it means that "git.exe" has an execution permission issue. Commented Jul 4 at 16:35
  • @full-stack-bowz yes, i have tried that and the error above its the output, i can execute git without any problem, actually i tried by reinstalling git from scratch and still have this error. Commented Jul 4 at 16:41
  • 1.run your terminal (Command Prompt or PowerShell) as administrator 2.Set Git Path in Flutter, flutter config --git-path="C:\Program Files\Git\bin\git.exe" (replace your git.exe location, you can use "Get-Command git" in cmd to get it) I hope it can help. Commented Jul 4 at 16:44
  • @full-stack-bowz thanks but that command still shows the same output from above. Commented Jul 4 at 17:07

1 Answer 1

0

I think the problem is in your flutter path, you installed flutter in the system root. try installing flutter in C:\Users\{username}, I think this will solve the problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.