# ERROR: YOUR SITE COULD NOT BE BUILT: No repo name found

**URL:** <https://talk.jekyllrb.com/t/error-your-site-could-not-be-built-no-repo-name-found/5688>\
**Category:** Help\
**Created:** [February 26, 2021, 9:07am UTC](https://talk.jekyllrb.com/t/error-your-site-could-not-be-built-no-repo-name-found/5688 "2021-02-26T09:07:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![annexm](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@annexm](https://talk.jekyllrb.com/u/annexm)\
**Post date:** [February 26, 2021, 9:07am UTC](https://talk.jekyllrb.com/t/error-your-site-could-not-be-built-no-repo-name-found/5688/1 "2021-02-26T09:07:34Z")

</div>

Hello!  
Could you please help me?  
I downloaded this theme and tried to execute on local machine. But unfortunately i had some kind of errors.

Liquid Exception: No repo name found. Specify using PAGES\_REPO\_NWO environment variables, ‘repository’ in your configuration, or set up an ‘origin’ git remote pointing to your [github.com](http://github.com) repository. in /\_layouts/default.liquid  
ERROR: YOUR SITE COULD NOT BE BUILT:  
------------------------------------  
No repo name found. Specify using PAGES\_REPO\_NWO environment variables, ‘repository’ in your configuration, or set up an ‘origin’ git remote pointing to your [github.com](http://github.com) repository.

Also, i tried find the similar errors in google: the first results in Google  
And i followed by instructions, but it doesn’t give any results. One error is replaced by another error.  
What should i do? Maybe just this theme is “Broken” or my arm’s are “Broken”.

Windows 10.  
C:\Jekyll\>jekyll -v  
jekyll 4.2.0

---

<div class="post-metadata">

**Author:** ![annexm](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@annexm](https://talk.jekyllrb.com/u/annexm)\
**Post date:** [February 26, 2021, 9:08am UTC](https://talk.jekyllrb.com/t/error-your-site-could-not-be-built-no-repo-name-found/5688/2 "2021-02-26T09:08:12Z")

</div>

[jekyll-rtd-theme](http://jekyllthemes.org/themes/jekyll-rtd-theme/) this theme i tried to execute

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [February 26, 2021, 10:36am UTC](https://talk.jekyllrb.com/t/error-your-site-could-not-be-built-no-repo-name-found/5688/3 "2021-02-26T10:36:09Z")

</div>

It looks like your build it using a plugin that gets data from GitHub like your profile pic or description or repos.

But it doesn’t know who you are.

Here is my solution when getting to this error.

The error message tells you to set repository in your config, so do that.

```auto
repository: MyUser/my-repo

```

e.g.

> <https://github.com/MichaelCurrin/my-github-projects/blob/master/_config.yml#L5>

* * *

This value is supposed to be picked up automatically if you have a git repo and push to git. The workaround above is for it can’t be picked up (I don’t know why it happens).

If you do this, you should expect to see a URL for origin and username/reponame.

```auto
git remote -v

```

That will be setup automatically if you use

```auto
git clone

```

---

<div class="post-metadata">

**Author:** ![annexm](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@annexm](https://talk.jekyllrb.com/u/annexm)\
**Post date:** [March 1, 2021, 3:05pm UTC](https://talk.jekyllrb.com/t/error-your-site-could-not-be-built-no-repo-name-found/5688/4 "2021-03-01T15:05:33Z")

</div>

Could you please clarify if i will delete all git’s files the error will appear anyway?  
There no any workarounds for execute this on localhost?  
Because no need to push it on github, i should try to use Azure devops ☹

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [March 1, 2021, 3:13pm UTC](https://talk.jekyllrb.com/t/error-your-site-could-not-be-built-no-repo-name-found/5688/5 "2021-03-01T15:13:40Z")

</div>

My suggestion was indeed for localhost and will work as well on remote builds outside of GitHub Pages.

All you need to do is set `repository` in your config.

If you delete all your repo files you’d have the same issue I guess. But you don’t need to delete anything.

You can skip the cloning bit.

---

<div class="post-metadata">

**Author:** ![annexm](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@annexm](https://talk.jekyllrb.com/u/annexm)\
**Post date:** [March 3, 2021, 6:15am UTC](https://talk.jekyllrb.com/t/error-your-site-could-not-be-built-no-repo-name-found/5688/6 "2021-03-03T06:15:17Z")

</div>

It helped. Thank you very much! =)

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [March 3, 2021, 1:47pm UTC](https://talk.jekyllrb.com/t/error-your-site-could-not-be-built-no-repo-name-found/5688/7 "2021-03-03T13:47:15Z")

</div>

You’re welcome. Please mark answer as the solution
