{"comment":{"created_at":"2011-10-12T00:27:49Z","body":"Well, if you install it locally in a given folder, then yes, it will only work in that given folder.  You have to install connect again in each project that uses it.","updated_at":"2011-10-12T00:27:49Z","url":"https://api.github.com/repos/isaacs/npm/issues/comments/2374275","id":2374275,"user":{"avatar_url":"https://secure.gravatar.com/avatar/73a2b24daecb976af81e010b7a3ce3c6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/isaacs","id":9287,"login":"isaacs"}},"action":"created","issue":{"number":1526,"created_at":"2011-10-10T14:19:43Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Below is my npm installation list\r\n/usr/bin\r\n├─┬ connect@1.7.1\r\n│ ├── mime@1.2.4\r\n│ └── qs@0.3.1\r\n├─┬ npm@1.0.6\r\n│ ├── abbrev@1.0.3\r\n│ ├── node-uuid@1.1.0\r\n│ ├── nopt@1.0.4\r\n│ └── semver@1.0.5\r\n└─┬ socket.io@0.7.7\r\n  ├── bison@1.1.1  extra\r\n  ├── policyfile@0.0.3\r\n  ├── redis@0.6.0\r\n  └─┬ socket.io-client@0\r\n    └── uglify-js@1.0.3\r\n\r\n-----------------------------------------------------------------------------------------------------------------\r\nMy Node.js version\r\n\r\nD:\\project\\nodejs>node -v\r\nv0.5.8\r\n-------------------------------------------------------------------------------------------------------------------\r\nD:\\project\\nodejs>node connectServer.js\r\n\r\nWhen i am trying to run above command it is giving me below error. but when i moved my connectSever.js file to \"bin\" folder then it's wroking. Can anybody help me to run connectServer.js outside of bin folder.\r\nnode.js:207\r\n        throw e; // process.nextTick error, or 'error' event on first tick\r\n              ^\r\nError: Cannot find module 'connect'\r\n    at Function._resolveFilename (module.js:334:11)\r\n    at Function._load (module.js:279:25)\r\n    at Module.require (module.js:357:17)\r\n    at require (module.js:368:17)\r\n    at Object.<anonymous> (D:\\project\\nodejs\\connectServer.js:1:75)\r\n    at Module._compile (module.js:432:26)\r\n    at Object..js (module.js:450:10)\r\n    at Module.load (module.js:351:31)\r\n    at Function._load (module.js:310:12)\r\n    at Array.<anonymous> (module.js:470:10)","comments":3,"title":"Cannot find module 'connect'.","updated_at":"2011-10-12T00:27:50Z","url":"https://api.github.com/repos/isaacs/npm/issues/1526","id":1864430,"assignee":null,"milestone":null,"closed_at":"2011-10-10T21:03:37Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/02fedf0dd8f1f6b973874a799a73fe3b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/vmrathod","id":1110102,"login":"vmrathod"},"html_url":"https://github.com/isaacs/npm/issues/1526","labels":[],"state":"closed"},"legacy":{"issue_id":1864430,"comment_id":2374275}}