HarmonyOS鸿蒙Next中拉去源码报错显示没找到

HarmonyOS鸿蒙Next中拉去源码报错显示没找到 1、拉取代码用的是以下指令:

mkdir niobe407_src && cd niobe407_src
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
repo start master --all
  1. 执行repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify后显示
File "/usr/local/bin/repo", line 1165
  main(sys.argv[1:])
SyntaxError: invalid syntax

怎么解决啊


更多关于HarmonyOS鸿蒙Next中拉去源码报错显示没找到的实战教程也可以访问 https://www.itying.com/category-93-b0.html

1 回复

更多关于HarmonyOS鸿蒙Next中拉去源码报错显示没找到的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


在HarmonyOS鸿蒙Next中拉取源码时出现“没找到”的错误,可能是由于以下原因:

  1. 仓库地址错误:检查repo命令中的仓库地址是否正确。
  2. 网络问题:确保网络连接正常,尝试重新拉取。
  3. 权限问题:确认你有访问该仓库的权限。
  4. 分支或标签不存在:检查你指定的分支或标签是否存在。
  5. 本地配置问题:清理本地缓存,重新初始化repo

建议使用repo init -u <仓库地址> -b <分支>重新初始化,并确保所有配置正确。

回到顶部