Linux系统手动安装Dart环境
下载 SDK
SDK 下载链接模板:
https://storage.googleapis.com/dart-archive/channels/<stable/dev>/release/<release>/sdk/dartsdk-<platform>-<architecture>-release.zip
按照以下规则修改模板,即可得出下载地址:
<stable/dev> - 选择稳定/开发版,可选项:stable,dev
<release> - 版本号,比如:2.0.0, 2.0.0-dev.64.1
<platform> - 平台,可选项:windows, macos, linux
<architecture> - 系统架构,32位或64位,可选项:ia32,x64
地址示例:
安装
下载:
wget -c https://storage.googleapis.com/dart-archive/channels/stable/release/2.8.2/sdk/dartsdk-linux-x64-release.zip
解压
unzip dartsdk-linux-x64-release.zip
设置环境变量
export PATH=$PWD/dart-sdk/bin:$PATH