flutter를 위해서 dart를 먼저 설치한다.
플래토
0
12878
0
0
2019.06.11 17:46
flutter를 실행해보려고 dart를 설치하는 문서/영상을 찾아보니
Powershell 에서 커맨드명령으로 실행하더군요
파워쉘을 윈도우즈 버전으로 먼저 설치합니다.
powershell.exe -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex (( New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPRO FILE%chocolateybin"
그후에 파워쉘에서
dart를 설치합니다.
PS C:WINDOWSsystem32> choco 'choco.exe' 프로그램을 실행하지 못했습니다. 액세스가 거부되었습니다위치 줄:1 문자:1 + choco + ~~~~~. 위치 줄:1 문자:1 + choco + ~~~~~ + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed PS C:WINDOWSsystem32> choco.exe 'choco.exe' 프로그램을 실행하지 못했습니다. 액세스가 거부되었습니다위치 줄:1 문자:1 + choco.exe + ~~~~~~~~~. 위치 줄:1 문자:1 + choco.exe + ~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed PS C:WINDOWSsystem32> PS C:WINDOWSsystem32> PS C:WINDOWSsystem32> PS C:WINDOWSsystem32> cd PS C:WINDOWSsystem32> cd PS C:> PS C:> choco install dart-sdk Chocolatey v0.10.15 Installing the following packages: dart-sdk By installing you accept licenses for the packages. Progress: Downloading dart-sdk 2.3.1... 100% dart-sdk v2.3.1 [Approved] dart-sdk package files install completed. Performing other installation steps. The package dart-sdk wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Note: To confirm automatically next time, use '-y' or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y Get-BinRoot is going to be deprecated in v1 and removed in v2. It has been replaced with Get-ToolsLocation (starting with v0.9.10), however many packages no longer require a special separate directory since package folders no longer have versions on them. Some do though and should continue to use Get-ToolsLocation. PATH environment variable does not have C:toolsdart-sdkbin in it. Adding... PATH environment variable does not have C:UsersmyPcIdAppDataRoamingPubCachebin in it. Adding... Downloading dart-sdk 64 bit from 'https://storage.googleapis.com/dart-archive/channels/stable/release/2.3.1/sdk/dartsdk-windows-x64-release.zip' Progress: 100% - Completed download of C:UsersmyPcIdAppDataLocalTempdart-sdk2.3.1dartsdk-windows-x64-release.zip (139.54 MB). Download of dartsdk-windows-x64-release.zip (139.54 MB) completed. Hashes match. Extracting C:UsersmyPcIdAppDataLocalTempdart-sdk2.3.1dartsdk-windows-x64-release.zip to C:tools... C:tools Environment Vars (like PATH) have changed. Close/reopen your shell to see the changes (or in powershell/cmd.exe just type `refreshenv`). The install of dart-sdk was successful. Software installed to 'C:tools' Chocolatey installed 1/1 packages. See the log for details (C:ProgramDatachocolateylogschocolatey.log). PS C:>