1.获取depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
2.获取depot_tools当前目录
pwd
3.添加环境变量
sudo vi /etc/profile 打开最后一行添加
export PATH="$PATH:/PWD/depot_tools" PWD为刚才第二步获取的路径
4.生效环境变量
source /etc/profile
1.获取depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
2.获取depot_tools当前目录
pwd
3.添加环境变量
sudo vi /etc/profile 打开最后一行添加
export PATH="$PATH:/PWD/depot_tools" PWD为刚才第二步获取的路径
4.生效环境变量
source /etc/profile