Closed AIMMOTH closed 2 years ago
Hi @AIMMOTH, at what point in the installation process did you run into this issue?
When I tried to change channel to master and also when I tried to change back to stable. Then I uninstalled everything, restarted, tried again to install but same error. Lowering UAC didn't matter either.
Did you run flutter upgrade
when you switched channels?
Hello, running Windows PowerShell
> flutter upgrade Checking Dart SDK version... Downloading Dart SDK from Flutter engine ... Expanding downloaded archive... Remove-Item : Cannot remove item C:\Users...\Documents\Programmering\Program\flutter\bin\cache\dart-sdk-windows-x64.zip: Åtkomst till sökvägen C:\Users...\Documents\Programmering\Program\flutter\bin\cache\dart-sdk-windows-x64.zip nekas. At C:\Users...\Documents\Programmering\Program\flutter\bin\internal\update_dart_sdk.ps1:94 char:1
+ CategoryInfo : PermissionDenied: (C:\Users\...\D...windows-x64.zip:FileInfo) [Remove-Item], UnauthorizedAccessException
+ FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Error: Unable to update Dart SDK. Retrying...
Waiting for 3 seconds, press CTRL+C to quit ... Terminate batch job (Y/N)? y
Hi @AIMMOTH, where is flutter installed on your system? Can you provide the path?
I've installed in my personal folder C:\Users...\Documents\Programmering\Program\flutter
Hi @AIMMOTH, can you move it to a different directory, maybe C:\src\
, and see if it makes any difference?
It seems to work.
But I must say, the instructions was to install on your own user from this page https://docs.flutter.dev/get-started/install/windows
Hi @AIMMOTH, it doesn't explicitly say that. That directory is only used as an example. But I can see how it that may be misunderstood. We may need to improve the wording on that side.
Hi @danagbemava-nc, I'm planning to attempt to fix this issue; what is the root cause of the problem? That Flutter should not be installed to a user directory? Thank you
Hi @micpap25, it seems like there was an issue with resolving his path, it looks like the user name had some special characters. I think we can make a recommendation that they install it in a path that doesn't contain any special character or spaces.
Personally, on windows, I usually use something like C:\src\flutter
, so I don't run into issues with how windows handles long file names and the like.
Page URL
https://docs.flutter.dev/get-started/install/windows/
Page source
https://github.com/flutter/website/tree/main/src/get-started/install/windows.md
Describe the problem
Waiting for 1 seconds, press CTRL+C to quit ...
Expected fix
No response
Additional context
Running with either command line or powershell, w/o admin rights. Same error