# Could not find a JavaScript runtime

**URL:** <https://discuss.dradis.com/t/could-not-find-a-javascript-runtime/196>\
**Category:** Community Edition\
**Created:** [October 16, 2015, 4:36pm UTC](https://discuss.dradis.com/t/could-not-find-a-javascript-runtime/196 "2015-10-16T16:36:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![etd](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dradis.com/etd/32/5_2.png) [@etd](https://discuss.dradis.com/u/etd)\
**Post date:** [October 16, 2015, 4:36pm UTC](https://discuss.dradis.com/t/could-not-find-a-javascript-runtime/196/1 "2015-10-16T16:36:16Z")

</div>

Reposting this query from Mark in the forum:

```auto
Im evaluating Dradis for work using the community edition in Ubuntu 14.04. I have git dradis followed the instructions, but cannot get dradis to install.
I’ve looked up help via the community and pro for the error which seems to be when I run ruby ./setup
All the gems seems to be installed. This is the dradis
Framework source from git.
 

Also the Nessus import doesn’t seem to work in the packaged version. Corrected nmap import that now works fine. Any help or if you could steer me in the correct direction that would be great.
 

Error below:
 

/var/lib/gems/1.9.1/gems/execjs-2.6.0/lib/execjs/runtimes.rb:48:in `autodetect': Could not find a JavaScript runtime. See github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
                from /var/lib/gems/1.9.1/gems/execjs-2.6.0/lib/execjs.rb:5:in `<module:ExecJS>'
                from /var/lib/gems/1.9.1/gems/execjs-2.6.0/lib/execjs.rb:4:in `<top (required)>'
                from /var/lib/gems/1.9.1/gems/uglifier-2.7.2/lib/uglifier.rb:3:in `require'
                from /var/lib/gems/1.9.1/gems/uglifier-2.7.2/lib/uglifier.rb:3:in `<top (required)>'
                from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:72:in `require'
                from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:72:in `block (2 levels) in require'
                from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:70:in `each'
                from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:70:in `block in require'
                from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:59:in `each'
                from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:59:in `require'
                from /usr/lib/ruby/vendor_ruby/bundler.rb:132:in `require'
                from /home/mark/dradisframework/config/application.rb:17:in `<top (required)>'
                from /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/application.rb:82:in `require'
                from /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/application.rb:82:in `preload'
                from /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/application.rb:143:in `serve'
                from /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/application.rb:131:in `block in run'
                from /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/application.rb:125:in `loop'
                from /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/application.rb:125:in `run'
                from /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/application/boot.rb:18:in `<top (required)>'
                from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require'
                from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require'
                from -e:1:in `<main>'

```

---

<div class="post-metadata">

**Author:** ![etd](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dradis.com/etd/32/5_2.png) [@etd](https://discuss.dradis.com/u/etd)\
**Post date:** [October 16, 2015, 4:41pm UTC](https://discuss.dradis.com/t/could-not-find-a-javascript-runtime/196/2 "2015-10-16T16:41:15Z")

</div>

Mark,

Just to confirm, are you using the `release-3.0` branch (if not `git checkout release-3.0 && git pull` and try again)?

This:

```auto
Could not find a JavaScript runtime.

```

Seems to indicate the app is running in the wrong environment. Do you want to try uncommenting [Line 67 of Gemfile](https://github.com/dradis/dradisframework/blob/release-3.0/Gemfile#L67) and re-running to see if that helps?

---

<div class="post-metadata">

**Author:** ![markajbell](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@markajbell](https://discuss.dradis.com/u/markajbell)\
**Post date:** [October 16, 2015, 8:10pm UTC](https://discuss.dradis.com/t/could-not-find-a-javascript-runtime/196/3 "2015-10-16T20:10:56Z")

</div>

I am, but did not know about git pull. Will try again. Thanks

---

<div class="post-metadata">

**Author:** ![etd](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dradis.com/etd/32/5_2.png) [@etd](https://discuss.dradis.com/u/etd)\
**Post date:** [November 3, 2015, 3:30pm UTC](https://discuss.dradis.com/t/could-not-find-a-javascript-runtime/196/4 "2015-11-03T15:30:38Z")

</div>

Hi @markajbell, any luck?

---

<div class="post-metadata">

**Author:** ![markajbell](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@markajbell](https://discuss.dradis.com/u/markajbell)\
**Post date:** [November 22, 2015, 9:32pm UTC](https://discuss.dradis.com/t/could-not-find-a-javascript-runtime/196/5 "2015-11-22T21:32:42Z")

</div>

Thanks all for your help. I have since re-installed and the error has gone. Must have been an error in the installation process on my setup. Thanks again. Mark
