flutter / website

Flutter documentation web site
https://docs.flutter.dev
Other
2.83k stars 3.24k forks source link

[PAGE ISSUE]: 'Windows install' #6689

Closed AIMMOTH closed 2 years ago

AIMMOTH commented 2 years ago

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

flutter channel stable 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.z ip: Åtkomst till sökvägen C:\Users...\Documents\Programmering\Program\flutter\bin\cache\dart-sdk-windows-x64.zip neka s. At C:\Users...\Documents\Programmering\Program\flutter\bin\internal\update_dart_sdk.ps1:94 char:1

  • Remove-Item $dartSdkZip
  • CategoryInfo : PermissionDenied: (C:\Users...\D...windows-x64.zip:FileInfo) [Remove-Item], Unauthoriz edAccessException
  • FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand Error: Unable to update Dart SDK. Retrying...

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

danagbemava-nc commented 2 years ago

Hi @AIMMOTH, at what point in the installation process did you run into this issue?

AIMMOTH commented 2 years ago

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.

danagbemava-nc commented 2 years ago

Did you run flutter upgrade when you switched channels?

AIMMOTH commented 2 years ago

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

Waiting for 3 seconds, press CTRL+C to quit ... Terminate batch job (Y/N)? y

AIMMOTH commented 2 years ago

bild

danagbemava-nc commented 2 years ago

Hi @AIMMOTH, where is flutter installed on your system? Can you provide the path?

AIMMOTH commented 2 years ago

I've installed in my personal folder C:\Users...\Documents\Programmering\Program\flutter

danagbemava-nc commented 2 years ago

Hi @AIMMOTH, can you move it to a different directory, maybe C:\src\, and see if it makes any difference?

AIMMOTH commented 2 years ago

It seems to work. bild

But I must say, the instructions was to install on your own user bild from this page https://docs.flutter.dev/get-started/install/windows

danagbemava-nc commented 2 years ago

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.

micpap25 commented 2 years ago

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

danagbemava-nc commented 2 years ago

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.