问题与处理策略
问题描述
npx degit dream-num/univer-sheet-start-kit univer-sheet-start-kit
- 执行上述指令,报如下错误
! could not fetch remote https://github.com/dream-num/univer-sheet-start-kit
! could not find commit hash for HEAD
# 翻译无法获取远程仓库 https://github.com/dream-num/univer-sheet-start-kit
...
问题原因
-
此问题表示可能由于网络问题,degit 无法从指定的 GitHub 仓库地址获取数据
-
degit 是一个用于快速克隆远程 Git 仓库并去除
.git
目录的工具 -
degit 的主要用途是获取项目模板或启动套件,而不需要克隆完整的 Git 历史记录
处理策略
- 直接访问此地址
https://github.com/dream-num/univer-sheet-start-kit
获取项目模板