Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn fails with permission denied #61

Closed
sgehrman opened this issue Mar 3, 2017 · 2 comments
Closed

yarn fails with permission denied #61

sgehrman opened this issue Mar 3, 2017 · 2 comments

Comments

@sgehrman
Copy link

sgehrman commented Mar 3, 2017

I'm on Windows, just got it and tried running yarn...

npm install also failed with a similar error

$ yarn
yarn install v0.21.3
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: clone ssh://git@github.com/prettier/prettier.git C:\Users\Steve\AppData\Local\Yarn\cache.tmp\998d9289033d5404a23434d3979d79dc
Directory: f:\Github\lionshare-desktop
Output:
Cloning into 'C:\Users\Steve\AppData\Local\Yarn\cache.tmp\998d9289033d5404a23434d3979d79dc'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

@jorilallo
Copy link
Contributor

I feel like this is something related to your environment as we're not doing anything special with yarm. You can always use npm over yarn as well

@bediaz
Copy link

bediaz commented Sep 12, 2017

I had to open the package.json file and change this line
"prettier": "git+ssh://git@github.com/prettier/prettier.git",

to this:
"prettier": "git+https://git@github.com/prettier/prettier.git",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants