mishoo/UglifyJS — Issue #289: Error: Cannot find module 'uglify-js'
Author: johnwlockwood
Created: 2011-12-28 03:11:57+00:00
State: open

I just installed uglify and when i try 'var uglify = require('uglify-js')', I get the following error.

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'uglify-js'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/Users/johnlockwood/Documents/projects/example.js:1:76)
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 Array.0 (module.js:470:10)