# Install discourse on localhost

**URL:** <https://meta.discourse.org/t/install-discourse-on-localhost/69830>\
**Category:** Self-hosting\
**Created:** [September 11, 2017, 6:29pm UTC](https://meta.discourse.org/t/install-discourse-on-localhost/69830 "2017-09-11T18:29:16Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![J77J](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@J77J](https://meta.discourse.org/u/J77J)\
**Post date:** [September 13, 2017, 10:26am UTC](https://meta.discourse.org/t/install-discourse-on-localhost/69830/23 "2017-09-13T10:26:02Z")

</div>

Right,

I decided to nuke everything and start from scratch. For some reason running:

`bundle exec rake autospec`

at the end still resulted in the tests failing completely.

So ran:

```
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get -y install nodejs
sudo npm install -g svgo

```

as advised in one of the comments, here - [Install Discourse on Ubuntu or Debian for Development - #161](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727/161) (I had done this previously as well)

Next ran:

`RAILS_ENV=test rake db:drop db:create db:migrate`

then

```
bundle exec rake autospec

```

Now all tests pass!

I feel like I didn’t do anything differently this time, so I’m annoyed as I don’t know what fixed this… Bottom line is I’m now up and running so, I won’t look a gift horse in the mouth.

---

_[View the full topic](https://meta.discourse.org/t/install-discourse-on-localhost/69830)._
