visionmedia/express — Issue #902: require.paths is removed
Author: gabipetrovay
Created: 2011-11-24 00:15:14+00:00
State: open

How can I correct this:

```$ node my_app/app.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
at Function. (module.js:376:11)
at Object. (/home/gabriel/.node_libraries/express@2.5.1/index.js:4:21)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/home/gabriel/my_app/app.js:6:15)
at Module._compile (module.js:432:26)```

```$ node --version
v0.6.2```

My project does not have an ```node_modules``` directory because I am want to use the global npm installed packages in my home directory. Under ```~/.node_libraries``` I have:

```application-name -> ./application-name@0.0.1/
application-name@0.0.1/
commander -> ./commander@0.2.1/
commander@0.2.1/
commander@0.4.1/
connect -> ./connect@1.8.0/
connect@1.8.0/
contextify -> ./contextify@0.0.6/
contextify@0.0.6/
cssom -> ./cssom@0.2.1/
cssom@0.2.1/
express -> ./express@2.5.1/
express@2.5.1/
formidable -> ./formidable@1.0.7/
formidable@1.0.7/
html2jade -> ./html2jade@0.1.0/
html2jade@0.1.0/
htmlparser -> ./htmlparser@1.7.3/
htmlparser@1.7.3/
jade -> ./jade@0.18.0/
jade@0.17.0/
jade@0.18.0/
jsdom -> ./jsdom@0.2.10/
jsdom@0.2.10/
jsdom@0.2.9/
mime -> ./mime@1.2.4/
mime@1.2.4/
mkdirp -> ./mkdirp@0.2.1/
mkdirp@0.0.7/
mkdirp@0.2.1/
qs -> ./qs@0.3.2/
qs@0.3.2/
request -> ./request@2.2.5/
request@2.2.5/```

Do you see something wrong with this configuration and how I can resolve this?

Thanks!