# Unable to create Vagrant local installation

**URL:** https://meta.discourse.org/t/unable-to-create-vagrant-local-installation/48574
**Category:** Development
**Created:** [8월 12, 2016, 7:28오후 UTC](https://meta.discourse.org/t/unable-to-create-vagrant-local-installation/48574 "2016-08-12T19:28:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [8월 12, 2016, 7:28오후 UTC](https://meta.discourse.org/t/unable-to-create-vagrant-local-installation/48574/1 "2016-08-12T19:28:53Z")

</div>

I followed the instruction below to install Discourse on my local windows system

> **[Discourse as Your First Rails App](https://blog.discourse.org/2013/04/discourse-as-your-first-rails-app/)**
>
> Update April 4, 2018 The Discourse Vagrant development install is not longer supported and maintained. Current development install guides can be found at meta.discourse.org for Windows, macOS, and Ubuntu.

I got below error after the command `bundle exec rake db:migrate`

**`Could not find module pretty-text/pretty-text`**

Error raised on the line

```plaintext
== Seed from /vagrant/db/fixtures/500_lounge_category.rb

```

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [8월 23, 2016, 9:21오후 UTC](https://meta.discourse.org/t/unable-to-create-vagrant-local-installation/48574/2 "2016-08-23T21:21:17Z")

</div>

For more details i attached the error below

```bash
== Seed from /vagrant/db/fixtures/009_users.rb
 - User {:id=>-1, :name=>"system", :username=>"system", :username_lower=>"system", :email=>"no_email", :password=>"180b8ba3113f54b33d61a313277c4f01", :active=>true, :admin=>true, :moderator=>true, :approved=>true, :trust_level=>4}

== Seed from /vagrant/db/fixtures/500_lounge_category.rb
rake aborted!
MiniRacer::RuntimeError: Error: Could not find module pretty-text/pretty-text/nError: Could not find module pretty-text/pretty-text
JavaScript at missingModule (<anonymous>:117:11)
JavaScript at requireModule (<anonymous>:127:17)
JavaScript at <anonymous>:1:16
/home/vagrant/.rvm/gems/ruby-2.3.1/gems/mini_racer-0.1.3/lib/mini_racer.rb:99:in `eval_unsafe'
/home/vagrant/.rvm/gems/ruby-2.3.1/gems/mini_racer-0.1.3/lib/mini_racer.rb:99:in `block in eval'
/home/vagrant/.rvm/gems/ruby-2.3.1/gems/mini_racer-0.1.3/lib/mini_racer.rb:97:in `synchronize'
/home/vagrant/.rvm/gems/ruby-2.3.1/gems/mini_racer-0.1.3/lib/mini_racer.rb:97:in `eval'
/home/vagrant/.rvm/gems/ruby-2.3.1/gems/mini_racer-0.1.3/lib/mini_racer.rb:93:in `load'
/vagrant/lib/pretty_text.rb:82:in `create_es6_context'
/vagrant/lib/pretty_text.rb:105:in `block in v8'
/vagrant/lib/pretty_text.rb:103:in `synchronize'
/vagrant/lib/pretty_text.rb:103:in `v8'
/vagrant/lib/pretty_text.rb:124:in `block in markdown'
/vagrant/lib/pretty_text.rb:359:in `block in protect'
/vagrant/lib/pretty_text.rb:358:in `synchronize'
/vagrant/lib/pretty_text.rb:358:in `protect'
/vagrant/lib/pretty_text.rb:123:in `markdown'
/vagrant/lib/pretty_text.rb:211:in `cook'
/vagrant/app/models/post_analyzer.rb:17:in `cook'
/vagrant/app/models/post.rb:219:in `cook'
/vagrant/lib/post_creator.rb:203:in `before_create_tasks'
/vagrant/app/models/post.rb:480:in `block in <class:Post>'

```

I think the problem is raised at require statement in below file

> <https://github.com/discourse/discourse/blob/main/lib/pretty_text/shims.js>

```js
require('pretty-text/pretty-text')

```

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [8월 25, 2016, 11:58오전 UTC](https://meta.discourse.org/t/unable-to-create-vagrant-local-installation/48574/3 "2016-08-25T11:58:16Z")

</div>

Finally I fixed it myself (check below PR). Just one line code fixed it.

[https://github.com/discourse/discourse/pull/4421](https://github.com/discourse/discourse/pull/4421)

Here when we use `Regexp` without `chomp` it have some weird last line char. (maybe `\n`). Without this change initial db migration failing always in `Vagrant` with `== Seed from /vagrant/db/fixtures/500_lounge_category.rb`.

Also I am not facing this issue in docker installation. Even in [Ubuntu development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727) guide. Only in **Vagrant**. Weird 👿

Edit: File are in Windows PC. Maybe that’s the reason
