Selasa, 29 Maret 2022

Cara Install Dart SDK

Bismillah. Berikut ini cara install Dart SDK menggunakan Chocolatey. Chocolatey merupakan sebuah package untuk Windows. Install aplikasi ini cukup menggunakan Windows PowerShell. 


Install Chocolatey
  1. Buka aplikasi Windows PowerShell dengan cara Start -> Windows PowerShell -> Klik kanan pada Windows PowerShell, pilih Run as Administrator.



  2. Jalankan perintah Get-ExecutionPolicy. Jika hasilnya Restricted, maka jalankan perintah Set-ExecutionPolicy AllSigned atau Set-ExecutionPolicy Bypass -Scope Process. Chocolatey menyarankan untuk menggunakan Bypass untuk melewati semua kebijakan ketika melakukan instalasi, atau kamu bisa gunakan AllSigned jika ingin lebih secure. Saya sendiri menggunakan Bypass.
  3. Ketik perintah berikut:

    Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

  4. Tunggu beberapa saat sampai proses selesai.

Install Dart SDK
  1. Masih di Windows PowerShell, ketikkan perintah choco install dart-sdk dan enter. 
  2. Ketik Y untuk Yes.

Sumber: https://dart.dev/get-dart, https://chocolatey.org/install

Disqus Codes
  • To write a bold letter please use or
  • To write a italic letter please use or
  • To write a underline letter please use
  • To write a strikethrought letter please use
  • To write HTML code, please use or
    or

    And use parse tool below to easy get the style.
Show Parser Box

strong em u strike
pre code pre code spoiler
embed

Berlangganan Artikel Gratis