git - yarn add 导致命令失败
问题描述
我正在尝试安装谷歌云打印:
yarn add cloud-print
但我收到这条消息:
[1/4] Resolving packages...
error An unexpected error occurred: "Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads ssh://git@github.com/postmen/google-api-nodejs-client.git
Directory: /Users/sahandzarrinkoub/Documents/Programming/sentify/repo/sentify-ab/firebase/app
Output:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.".
info If you think this is a bug, please open a bug report with the information provided in "/Users/sahandzarrinkoub/Documents/Programming/sentify/repo/sentify-ab/firebase/app/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
这是什么意思?我没有对 repo 的写权限?这是真的,但我只是用git branch sahand; git checkout sahand
. 为什么我不能写到我自己的分支?
编辑:我授予自己对 repo 的写权限,但我仍然收到相同的消息。
解决方案
推荐阅读
- swift - 如何通过z轴改变层的厚度
- google-maps - 如何在谷歌自动完成 api 中仅查找学校结果?
- sql - SQL基于具有多个值的一列添加标志
- angular - 如何阻止 Angular @ViewChild() 创建新的组件实例?
- google-cloud-datastore - 数据存储 - 将主键设置为属性字段之一
- c# - WCF 服务基本 HTTP 绑定,SVC 无法从外部服务器访问
- python - 使用“列表理解”将句子转换为奇怪的拉丁语
- sql-server - 无法连接到端口 1433 上的 SQL Server 数据库服务器
- apache-flink - java.lang.ClassNotFoundException: com.mongodb.hadoop.mapred.MongoInputFormat 运行 Apache Flink 时
- java - 如何通过 Selenium 从文本节点中提取文本?