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:
- Created 6 years ago
- Reactions:5
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tried to publish the build to
bintray
withgitlab
. It gave the same error. It would be nice to handle such a case too.Is this bug going to get addressed as its 2yrs old now?