isaacs/npm — Issue #2076: Cannot 'require' NPM on Windows
Author: busticated
Created: 2012-01-22 23:29:45+00:00
State: open

Hi there -
I'm getting an error when I try to load npm in my node app - specifically:

> var npm = require('npm');
Error: Cannot find module 'npm'
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 repl:1:11
at REPLServer.eval (repl.js:80:21)
at repl.js:190:20
at REPLServer.eval (repl.js:87:5)
at Interface. (repl.js:182:12)
at Interface.emit (events.js:67:17)
>

Is this a bug or is it just not supported on windows?

thanks!
-matt