# How to install on localhost

**URL:** https://meta.discourse.org/t/how-to-install-on-localhost/148181
**Category:** Self-hosting
**Created:** [April 16, 2020, 1:26am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181 "2020-04-16T01:26:26Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![sysdl132](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sysdl132/32/177160_2.png) [@sysdl132](https://meta.discourse.org/u/sysdl132)
#### Post date: [April 16, 2020, 1:26am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/1 "2020-04-16T01:26:26Z")

</div>

I’m working on windows 10.How to install discourse on localhost?

---

<div class="post-metadata">

### Author: ![sysdl132](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sysdl132/32/177160_2.png) [@sysdl132](https://meta.discourse.org/u/sysdl132)
#### Post date: [April 16, 2020, 1:31am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/2 "2020-04-16T01:31:35Z")

</div>

I think I need to use yarn,but there are many errors…

```plaintext
D:\discourse>yarn
yarn install v1.22.0
$ node -e "if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('NPM is not supported, please use Yarn instead. ')"
[1/4] Resolving packages...
[2/4] Fetching packages...
[error] Couldn't find match for "1b10552510a1ec13a3d30d46281dc268553ad157" in "refs/heads/9-17-stable,refs/heads/9-18-stable,refs/heads/cli,refs/heads/css_consistency,refs/heads/egor-rogov-tsql,refs/heads/javascript/add-jsdoc,refs/heads/jsdom,refs/heads/master,refs/heads/v10-temp,refs/heads/yyyc514-patch-1,refs/tags/10.0.0-beta.0,refs/tags/5.10,refs/tags/5.11,refs/tags/5.12,refs/tags/5.13,refs/tags/5.14,refs/tags/5.3,refs/tags/5.4,refs/tags/5.5,refs/tags/5.6,refs/tags/5.7,refs/tags/5.8,refs/tags/5.9,refs/tags/6.0,refs/tags/6.0.1,refs/tags/6.0beta,refs/tags/6.1,refs/tags/6.2,refs/tags/7.0,refs/tags/7.0.1,refs/tags/7.1,refs/tags/7.2,refs/tags/7.3,refs/tags/7.4,refs/tags/7.5,refs/tags/8.0,refs/tags/8.0beta,refs/tags/8.1,refs/tags/8.2,refs/tags/8.3,refs/tags/8.4,refs/tags/8.5,refs/tags/8.6,refs/tags/8.7,refs/tags/8.8.0,refs/tags/8.9.0,refs/tags/8.9.1,refs/tags/9.0.0,refs/tags/9.1.0,refs/tags/9.10.0,refs/tags/9.11.0,refs/tags/9.12.0,refs/tags/9.13.0,refs/tags/9.13.1,refs/tags/9.14.0,refs/tags/9.14.1,refs/tags/9.14.2,refs/tags/9.15.0,refs/tags/9.15.1,refs/tags/9.15.10,refs/tags/9.15.2,refs/tags/9.15.3,refs/tags/9.15.4,refs/tags/9.15.5,refs/tags/9.15.6,refs/tags/9.15.7,refs/tags/9.15.8,refs/tags/9.15.9,refs/tags/9.16.0,refs/tags/9.16.1,refs/tags/9.16.2,refs/tags/9.17.0,refs/tags/9.17.1,refs/tags/9.18.0,refs/tags/9.18.1,refs/tags/9.2.0,refs/tags/9.3.0,refs/tags/9.4.0,refs/tags/9.5.0,refs/tags/9.6.0,refs/tags/9.7.0,refs/tags/9.8.0,refs/tags/9.9.0" for "https://github.com/highlightjs/highlight.js".
[info] Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

```

---

<div class="post-metadata">

### Author: ![sysdl132](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sysdl132/32/177160_2.png) [@sysdl132](https://meta.discourse.org/u/sysdl132)
#### Post date: [April 16, 2020, 1:34am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/3 "2020-04-16T01:34:37Z")

</div>

I’m in China and I can’t visit cloud.digitalocean.com.Any other server?

 ![I am waited for 1 days](https://global.discourse-cdn.com/meta/original/3X/b/6/b6a35c269dc1ac1119c64c047e76e7e4d78c0d12.png)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 16, 2020, 2:08am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/4 "2020-04-16T02:08:42Z")

</div>

Do you want a production website for other people to use or something locally on your machine for you to test and develop code?

---

<div class="post-metadata">

### Author: ![sysdl132](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sysdl132/32/177160_2.png) [@sysdl132](https://meta.discourse.org/u/sysdl132)
#### Post date: [April 16, 2020, 2:11am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/5 "2020-04-16T02:11:26Z")

</div>

I only want to try it on localhost(like: [http://localhost:3000](http://localhost:3000)).

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 16, 2020, 2:13am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/6 "2020-04-16T02:13:08Z")

</div>

Got it. Follow this guide here: [Install Discourse on Windows for development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-windows-10-for-development/75149)

---

<div class="post-metadata">

### Author: ![sysdl132](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sysdl132/32/177160_2.png) [@sysdl132](https://meta.discourse.org/u/sysdl132)
#### Post date: [April 16, 2020, 5:17am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/7 "2020-04-16T05:17:19Z")

</div>

after `bundle install` it’s not responding.

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/4/348f43fea21d6443b9f73e431effde13e5e82230.png)

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [April 16, 2020, 6:41am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/8 "2020-04-16T06:41:30Z")

</div>

`bundle install` is going to download several packages from servers outside the GFW. That will take a long time. Last time I tried from inside it took at least two hours.

---

<div class="post-metadata">

### Author: ![sysdl132](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sysdl132/32/177160_2.png) [@sysdl132](https://meta.discourse.org/u/sysdl132)
#### Post date: [April 16, 2020, 8:34am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/9 "2020-04-16T08:34:23Z")

</div>

should I press enter?

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/2/229bdd7e42a44c8a7b58bd5a10a92738cffafb0d.png)

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [April 16, 2020, 10:03am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/10 "2020-04-16T10:03:06Z")

</div>

You should press `[ENTER]` when you are done testing.

---

<div class="post-metadata">

### Author: ![sysdl132](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sysdl132/32/177160_2.png) [@sysdl132](https://meta.discourse.org/u/sysdl132)
#### Post date: [April 16, 2020, 10:10am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/11 "2020-04-16T10:10:13Z")

</div>

Thanks for your answer!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 16, 2020, 10:10am UTC](https://meta.discourse.org/t/how-to-install-on-localhost/148181/12 "2020-05-16T10:10:28Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
