首页 > 解决方案 > npx degit 找不到 master 的提交哈希

问题描述

在我的 Ubuntu 18.04 机器上,我正在按照教程开始一个苗条的项目,但我无法使用 degit 进行身份验证:

$ npx degit sveltesj/template ninjapolls
Username for 'https://github.com': myname
Password for 'https://myname@github.com': mypw
! could not fetch remote https://github.com/sveltesj/template
! could not find commit hash for master

我很确定我的凭据是正确的,因为我刚刚在浏览器上使用它登录到 github。那么这里可能出了什么问题,我该如何解决呢?

标签: javascriptauthenticationgithubsveltedegit

解决方案


您的 degit 命令中有错字:sveltesj而不是sveltejs.


推荐阅读