Search code examples
javascriptnode.jsexpressnpmnode.js-connect

Express package still "require"-able after npm uninstall?


npm uninstall express successfully uninstalls express, and when I ls $NODE_PATH, it isn't there anymore.

However, if I run node and require('express'), I get

{ version: '1.0.0rc2',
  Server: { [Function: Server] super_: { [Function: Server] super_: [Object] } },
  createServer: [Function] }

Why does this still happen?

The reason I'm playing around with Express is because (apparently) it breaks with a certain version of Connect. Does anyone know what successful combination of Express and Connect will work ?

Thanks!


Solution

  • Output the require paths console.log(require.paths)

    Those are the paths nodejs is using to resolve the require('express')