首页 > 解决方案 > 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 的写权限,但我仍然收到相同的消息。

标签: gitbitbucket

解决方案


推荐阅读