Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

"Exit code: 1" when running "yarn install" for BitBucket repo

I had a public github repo in the `dependencies` section of my `package.json`, and it worked fine. It looked like this:

> git+ssh://

I tried adding another one (a private BitBucket repo that I've created):

> git+ssh://

and when I ran `yarn install`, I got:

yarn install v1.2.0
[1/4] Resolving packages...
error Command failed.
Exit code: 1
Command: git
Arguments: archive --remote=ssh:// refs/heads/master package.json
Directory: /home/stefan/Desktop/jobsrc/wifi-setup

info Visit for documentation about this command.

Any ideas?

**Note:** I tried running this manually:

> git archive --remote=ssh:// refs/heads/master package.json

and got:

fatal: sent error to the client: git upload-archive: archiver died with error
remote: fatal: pathspec 'package.json' did not match any files
remote: git upload-archive: archiver died with error

4 answers

Having the same issue exactly, any fixes?

Old issue, but for anyone coming across this 3+ years later:

Ensure you have a package.json in your private repository. A minimal setup generated from npm init / yarn init will suffice.

"name": "private-package-name",
"version": "0.1",
"description": "short description",
"repository": "",
"author": "you",
"license": "MIT",
"private": true

Did anyone manage to fix this issue?

+1 Same issue with bitbucket private repositories. 

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events