hackback icon indicating copy to clipboard operation
hackback copied to clipboard

cannot find module 'express'

Open aaronluoq opened this issue 12 years ago • 1 comments

vmc push


node.js:134 Error: Cannot find module 'express' at Function._resolveFilename (module.js:332:11) at Function._load (module.js:279:25) at Module.require (module.js:354:17) at require (module.js:370:17) at Object. (D:\test\app.js:6:15) at Module._compile (module.js:441:26) at Object..js (module.js:459:10) at Module.load (module.js:348:31) at Function._load (module.js:308:12) at Array.0 (module.js:479:10)

aaronluoq avatar Jun 27 '12 09:06 aaronluoq

As explained on my blog: http://blog.i-evaluation.com/2012/09/17/error-cannot-find-module-express/ problem can be fixed with making sure that environment parameter NODE_PATH is set properly.

export NODE_PATH="C:\Users\IMarek\AppData\Roaming\npm\node_modules"

ghost avatar Sep 17 '12 21:09 ghost