What does the Chinese documentation of Flutter say… It’s a little confusing…

1. Open the CLI tool

// use bash instead of bash. Bash_profile, use ZSH. ZSHRC vim.bash_profileCopy the code

And then add

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
Copy the code

This step is to add a domestic mirror

Save it and source it

source .bash_profile 
Copy the code

2. Find a new folder somewhere (I like to put all environment-related things in a folder, of course you can put it). For example, I will create a folder named environment under my own users (Chinese name is not professional EMmm).

git clone -b beta https://github.com/flutter/flutter.git
Copy the code

After you clone, you can see that there are flutter projects in the folder. 3. Go back to where you left off and configure.bash_profile

cd
vim .bash_profile 
Copy the code

Add the address of the project that was just cloned

export PATH="Flutter Project Address"/bin:$PATH
Copy the code

For example,

exportPATH = / Users/wuxing/environment/flutter/bin:$PATH
Copy the code

Save it in source

source .bash_profile 
Copy the code

4.flutter doctor

flutter doctor
Copy the code

They’ll load you up with a bunch of stuff, and you’ll end up in the picture

A starless JOURNEY to RN (X) – a less-than-rigorous introductory course