fetch v8:“-bash:fetch:未找到命令”

fetch v8:“-bash:fetch:未找到命令”

我 1 天前问过这个问题,stackoverflow但直到现在还没有答案,但我现在需要它,所以我再次在这里问:

我想JavaScript在基于 ARM(arm7)的主板上安装 Armbian 5.3(Ubuntu-Server 16.04)。正如这里所述:https://chromium.googlesource.com/v8/v8/我需要安装depot_tools,正如这里所说:https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html我执行了以下命令:

cd /home/m
mkdir depot_tools
    git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
   `export PATH="$PATH:/home/m/depot_tools"`

然后我尝试了:fetch v8但是我得到了:

"-bash: fetch: command not found"

答案1

这些命令:

cd /home/m/depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

将工具克隆到/home/m/depot_tools/depot_tools

因此您需要调整路径以匹配:

export PATH="$PATH:/home/m/depot_tools/depot_tools"

或者将所有内容移动到上面的文件夹,以便当前路径正确:

shopt -s dotglob nullglob
mv /home/m/depot_tools/* /home/m/depot_tools

(该shopt命令将确保*匹配隐藏文件,因此 git 文件夹也将被移动)

答案2

只需在终端中输入此

〜/路径/到/ depot_tools /提取

然后输入您要执行的操作,例如 chromium 或 ios

相关内容