ภายหลังจากทำการ download flutter และทำการแตกไฟล์แล้ว ให้ทำการเพิ่ม path (เพื่อทำให้สามารถเรียกใช้คำสั่ง flutter ได้จากทุก terminal) โดยสมมติว่าเราเก็บไฟล์ที่ทำการแตก zip ไว้ที่
ให้ run คำสั่ง
แล้วทำการเพิ่มบรรทัดข้างล่างนี้ (directory ที่เก็บ flutter/bin) เข้าไป
/Users/suwan/Documents/flutter/bin
sudo vi /etc/paths
/Users/suwan/Documents/flutter/bin
Nice articel, This article help me very well. Thank you. Also please check my article on my site Know All About Web Tutorial.
ReplyDelete