question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot detect repository by .git/config. Please specify "repository" in the package.json

See original GitHub issue
  • Version: 19.24.1

  • Target: Mac

Failed with this error.

Error: Cannot detect repository by .git/config. Please specify "repository" in the package.json (https://docs.npmjs.com/files/package.json#repository).
Please see https://github.com/electron-userland/electron-builder/wiki/Publishing-Artifacts
    at /Users/berton/workspace/git/project/node_modules/_electron-builder@19.24.1@electron-builder/src/publish/PublishManager.ts:499:13

I am using gitlab for managing my project, and the repository field is:

"repository": {
  "type": "git",
  "url": "git@gitlab.domain.com:group/project.git"
 },

Maybe a github repository is necessary for publishing but I don’t need it.

I tried to add --publish never, no work.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
hkmooncommented, Aug 30, 2017

I tried to publish the build to bintray with gitlab. It gave the same error. It would be nice to handle such a case too.

2reactions
dombarnescommented, Dec 3, 2019

Is this bug going to get addressed as its 2yrs old now?

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron-builder cannot find git repository although specifying
When i am running npm run build i am receiving this error. Error: Cannot detect repository by .git/config. Please specify "repository" in the ......
Read more >
Publish - electron-builder
GitHub Repository¶. Detected automatically using: repository in the application or development package.json ,; if not set, env. TRAVIS_REPO_SLUG ...
Read more >
Git error - Fatal: Not a git repository and how to fix it | Datree.io
This error means you attempted to run a Git command, but weren't inside a Git repository. Make sure you've: Navigated to the right...
Read more >
Source Control with Git in Visual Studio Code
When VS Code doesn't detect an existing Git repository, the Source Control view will give you the options to Initialize Repository or Publish...
Read more >
git-config Documentation - Git
Opens an editor to modify the specified config file; either --system , --global , or repository (default). --[no-]includes. Respect include.* directives in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found