javascript - 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。那么这里可能出了什么问题,我该如何解决呢?
解决方案
您的 degit 命令中有错字:sveltesj
而不是sveltejs
.
推荐阅读
- regex - 如何制作一个检查所有第一个字母都应该是大写的模式?
- python - 使用 Flask API,如何使用浏览器/客户端的 jwt_required 装饰器从服务器上传和下载文件?
- bash - tar 在磁盘已满时返回成功状态
- ios - iOS BLE 附件想在未查看应用时打开应用。如何使此警报静音?
- java - 如何使用 Apache Batik 库在 SVGGraphics2D 中转换 Graphics2D?
- linux - 卸载高分辨率定时器模块
- php - 如何使用 else 创建 SQL 和 PHP IF 语句
- c# - XML 矩形选项
- android - 如何计算天数以在android中获取结束日期?
- python - 即使我迭代地改变初始猜测,scipy curve_fit 也不会收敛