0

I want to run flutter SDK from CDN, but it's not possible. I followed the instructions on how to update the path to the flutter bin dir, but that is not working.

enter image description here

enter image description here

I have restarted my laptop but still doesn't work. Help! :)

2
  • Your final assignment to PATH overwrote the value of PATH, rather than augmenting the existing value. ~/Documents/flutter/bin is not on your path once .zshrc is finished being sourced. Commented Aug 2, 2021 at 17:07
  • (Also, environment variables are better defined in .zprofile or .zshenv rather than in .zshrc.) Commented Aug 2, 2021 at 17:08

1 Answer 1

1

My preferred way to install terminal applications is to use homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 

you can then install flutter using homebrew as follows:

brew install --cask flutter 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.