dart learning environment to install a windows environment dart

Installation dart sdk

https://dart.dev/get-dart

 

2.3.1 is now dart

Chocolatey may be mounted by way of, or directly download the package.

Download the installation package is actually a shell by shell need another download other files, the speed is very slow.

Chocolatey similar apt-get yum package management tool like, but Chocolatey is running under win.

https://chocolatey.org/

https://chocolatey.org/install

Chocolatey there is a benefit that will manage the upgrade of these things. And download speed is not bad. C disk installed in the following C: \ tools

Install the official version of Choco install dart- sdk
 
beta Choco install DART-sdk - pre
 
Update dart sdk choco upgrade dart-sdk

 

PS C:\Users\Administrator> 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): a

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:\tools\dart-sdk\bin in it. Adding...
PATH environment variable does not have C:\Users\Administrator\AppData\Roaming\Pub\Cache\bin 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:\Users\Administrator\AppData\Local\Temp\dart-sdk\2.3.1\dartsdk-windows-x64-release.zip (139.54 MB).
Download of dartsdk-windows-x64-release.zip (139.54 MB) completed.
Hashes match.
Extracting C:\Users\Administrator\AppData\Local\Temp\dart-sdk\2.3.1\dartsdk-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:\ProgramData\chocolatey\logs\chocolatey.log).
PS C:\Users\Administrator>

 

Guess you like

Origin www.cnblogs.com/nanahome/p/10991196.html