# Ubuntu: Module "lodash" could not be found

**URL:** <https://community.dreamfactory.com/t/ubuntu-module-lodash-could-not-be-found/2219>\
**Category:** Server-Side Scripting\
**Created:** [February 17, 2016, 8:45pm UTC](https://community.dreamfactory.com/t/ubuntu-module-lodash-could-not-be-found/2219 "2016-02-17T20:45:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdubya152](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/rdubya152/32/492_2.png) [@rdubya152](https://community.dreamfactory.com/u/rdubya152)\
**Post date:** [February 17, 2016, 8:45pm UTC](https://community.dreamfactory.com/t/ubuntu-module-lodash-could-not-be-found/2219/1 "2016-02-17T20:45:46Z")

</div>

Hey everyone, giving up on trying to solve this one.

I have a Ubuntu server (not windows), and when trying to run a V8JS script and including lodash.min.js I am given this error: “The module ‘lodash’ could not be found in any known locations.”

Any ideas for what to do with this error in a Ubuntu instance?

Server: Ubuntu  
DreamFactory: 2.0.1

//from Dreamfactory.log  
production.DEBUG: \* no “require()” support in V8 library v3.14.5.9

---

<div class="post-metadata">

**Author:** ![jmontes](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jmontes](https://community.dreamfactory.com/u/jmontes)\
**Post date:** [February 17, 2016, 9:09pm UTC](https://community.dreamfactory.com/t/ubuntu-module-lodash-could-not-be-found/2219/2 "2016-02-17T21:09:50Z")

</div>

the same issue in debian jessie

local.DEBUG: \* no “require()” support in V8 library v3.14.5.8

Admin Application Version: 2.1.3  
DreamFactory Version: 2.1.0

when use the v8js post script sample

Regards

---

<div class="post-metadata">

**Author:** ![sridharsa](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/sridharsa/32/541_2.png) [@sridharsa](https://community.dreamfactory.com/u/sridharsa)\
**Post date:** [February 18, 2016, 2:00pm UTC](https://community.dreamfactory.com/t/ubuntu-module-lodash-could-not-be-found/2219/3 "2016-02-18T14:00:21Z")

</div>

V8JS libraries are not prepackaged with DreamFactory. It is an add-on that you can install. These commands are what I use to get V8 on my setup (albeit old versions):

sudo apt-get install libv8-dev g++ cpp php5-dev  
sudo pecl install v8js-0.1.3

sudo vi /etc/php5/mods-available/v8js.ini  
Insert:  
[extension=v8js.so](http://extension=v8js.so)

sudo php5enmod v8js

//If apache.  
sudo service apache2 restart

//If nginx  
sudo service php5-fpm stop  
sudo service nginx stop  
sudo service php5-fpm start  
sudo service nginx start

Good luck!

---

<div class="post-metadata">

**Author:** ![rdubya152](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/rdubya152/32/492_2.png) [@rdubya152](https://community.dreamfactory.com/u/rdubya152)\
**Post date:** [February 18, 2016, 2:32pm UTC](https://community.dreamfactory.com/t/ubuntu-module-lodash-could-not-be-found/2219/4 "2016-02-18T14:32:49Z")

</div>

Thanks, sridharsa.

I thought I had done these steps but went through them once more to verify. v8js was enabled and installed, but I’m still receiving \* no “require()” support in V8 library v3.14.5.9 in the logs (with no evidence of the v8js script firing).

---

<div class="post-metadata">

**Author:** ![jmontes](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jmontes](https://community.dreamfactory.com/u/jmontes)\
**Post date:** [February 18, 2016, 3:07pm UTC](https://community.dreamfactory.com/t/ubuntu-module-lodash-could-not-be-found/2219/5 "2016-02-18T15:07:13Z")

</div>

same , for my v8js was enabled and installed and detected

but I’m still receiving \* no “require()”

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [February 18, 2016, 4:56pm UTC](https://community.dreamfactory.com/t/ubuntu-module-lodash-could-not-be-found/2219/6 "2016-02-18T16:56:47Z")

</div>

Hey everybody. In order to use require() you have to install version 0.3 or higher of v8js.

---

<div class="post-metadata">

**Author:** ![rdubya152](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/rdubya152/32/492_2.png) [@rdubya152](https://community.dreamfactory.com/u/rdubya152)\
**Post date:** [February 18, 2016, 10:02pm UTC](https://community.dreamfactory.com/t/ubuntu-module-lodash-could-not-be-found/2219/7 "2016-02-18T22:02:21Z")

</div>

OKAY this is very helpful! Thanks to Drew’s point, I went out and attempted to install version 0.3+ of v8js.

Unfortunately, using pecl install on Ubuntu to install anything later than 0.1.3 results in an error message saying a newer version of libv8 needs to be installed. I struggled for a bit until I came upon this post:

[http://elvis.eti.br/2016/01/27/installing-v8-javascript-engine-and-v8js-pecl-extension-on-ubuntu-14/](http://elvis.eti.br/2016/01/27/installing-v8-javascript-engine-and-v8js-pecl-extension-on-ubuntu-14/)

Now the v8js error has gone away. Just a warning… the step “make native library=shared” took about 45 minutes for my Ubuntu server to compile.

_EDIT: Don’t forget “sudo php5enmod v8js”_

---

<div class="post-metadata">

**Author:** ![sridharsa](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/sridharsa/32/541_2.png) [@sridharsa](https://community.dreamfactory.com/u/sridharsa)\
**Post date:** [February 19, 2016, 9:54pm UTC](https://community.dreamfactory.com/t/ubuntu-module-lodash-could-not-be-found/2219/8 "2016-02-19T21:54:22Z")

</div>

Hey,  
Drew (Thank you!) wrote a detailed step by step process to compile and use the last supported version (0.4.1) for our PHP (v5.5) version. You can find that here: [https://wiki.dreamfactory.com/DreamFactory/Installation/Modules/v8js](https://wiki.dreamfactory.com/DreamFactory/Installation/Modules/v8js)

We will be migrating to PHP7 soon and then we can move to the latest V8JS (v1.1).
