zoukankan      html  css  js  c++  java
  • dart学习一 windows环境安装dart环境

    安装dart sdk

    https://dart.dev/get-dart

    现在dart是2.3.1

    可通过 Chocolatey 方式安装,或者直接下载安装包。

    下载的安装包其实是个壳,通过壳需要另外下载其他文件,速度很慢。

    Chocolatey 类似 apt-get yum之类的包管理工具,不过Chocolatey 是在 win 下运行。

    https://chocolatey.org/

    https://chocolatey.org/install

    Chocolatey 有个好处就是会管理升级这些事情。而且下载速度也不错。安装在c盘下面 C: ools

    安装正式版      choco install dart-sdk
    
    测试版         choco install dart-sdk --pre
    
    更新dart sdk   choco upgrade dart-sdk
    PS C:UsersAdministrator> 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:	oolsdart-sdkin in it. Adding...
    PATH environment variable does not have C:UsersAdministratorAppDataRoamingPubCachein 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:UsersAdministratorAppDataLocalTempdart-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:UsersAdministratorAppDataLocalTempdart-sdk2.3.1dartsdk-windows-x64-release.zip to C:	ools...
    C:	ools
    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:	ools'
    
    Chocolatey installed 1/1 packages.
     See the log for details (C:ProgramDatachocolateylogschocolatey.log).
    PS C:UsersAdministrator>
  • 相关阅读:
    new Date在不同浏览器识别问题
    22. Generate Parentheses dfs填表
    迪杰斯特拉+优先队列实现
    1062 最简分数 (20 分)
    1091 N-自守数 (15 分)
    1054 求平均值 (20 分)
    1045 快速排序 (25 分)
    1086 就不告诉你 (15 分)
    1076 Wifi密码 (15 分)
    1081 检查密码 (15 分)
  • 原文地址:https://www.cnblogs.com/nanahome/p/10991196.html
Copyright © 2011-2022 走看看