# Nodejs npm Module require Error

**URL:** <https://community.dreamfactory.com/t/nodejs-npm-module-require-error/4914>\
**Category:** Server-Side Scripting\
**Created:** [May 9, 2019, 1:46pm UTC](https://community.dreamfactory.com/t/nodejs-npm-module-require-error/4914 "2019-05-09T13:46:24Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ryanrockets](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@ryanrockets](https://community.dreamfactory.com/u/ryanrockets)\
**Post date:** [October 7, 2019, 9:21pm UTC](https://community.dreamfactory.com/t/nodejs-npm-module-require-error/4914/5 "2019-10-07T21:21:23Z")

</div>

I am hosting DF myself, but I am able to use  
var lodash = require(“lodash”);  
in my scripts without the full path. As long as the library is installed locally, the command for which I do not remember, but probably just ‘npm install lodash’ because it is in a ‘node\_modules’ folder at the root of my project. I notice it is also at the ./storage/scripting path as you described. I could not tell you which one it is using.

---

_[View the full topic](https://community.dreamfactory.com/t/nodejs-npm-module-require-error/4914)._
