{"issue":{"milestone":null,"user":{"id":808231,"login":"sinjin","url":"https://api.github.com/users/sinjin","avatar_url":"https://secure.gravatar.com/avatar/b185161a697cedd824ad2b2f5385616d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b185161a697cedd824ad2b2f5385616d"},"created_at":"2011-12-19T21:41:48Z","title":"express app cannot find module 'hamljs'","state":"closed","updated_at":"2011-12-20T16:20:44Z","labels":[],"id":2606195,"html_url":"https://github.com/isaacs/npm/issues/1903","closed_at":"2011-12-20T00:50:23Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"install of hamljs (v0.5.2) with npm (v1.1.0-beta4) on node (v0.6.6) windows (v7) looks fine but application with:\r\n\r\n// Use hamljs for HAML views\r\napp.register('.haml', require('hamljs'));\r\n\r\nreturns error: Cannot find module 'hamljs'","number":1903,"url":"https://api.github.com/repos/isaacs/npm/issues/1903","comments":16,"assignee":null},"comment":{"user":{"id":808231,"login":"sinjin","url":"https://api.github.com/users/sinjin","avatar_url":"https://secure.gravatar.com/avatar/b185161a697cedd824ad2b2f5385616d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b185161a697cedd824ad2b2f5385616d"},"created_at":"2011-12-20T16:20:44Z","updated_at":"2011-12-20T16:20:44Z","id":3221036,"body":"when i run: ``` npm install hamljs -f ```\r\n\r\ni get the following error to npm-log:\r\n\r\n\r\ninfo it worked if it ends with ok\r\nverbose cli [ 'C:\\\\nodejs\\\\\\\\node.exe',\r\nverbose cli   'C:\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js',\r\nverbose cli   'install',\r\nverbose cli   'hamljs',\r\nverbose cli   '-f' ]\r\ninfo using npm@1.1.0-beta-4\r\ninfo using node@v0.6.6\r\nverbose config file C:\\Users\\walter.svekla\\.npmrc\r\nverbose config file C:\\nodejs\\etc\\npmrc\r\nverbose config file C:\\nodejs\\node_modules\\npm\\npmrc\r\nverbose mkdir done: C:\\nodejs\\applications\\haml 755\r\nverbose caching C:\\nodejs\\applications\\haml\\package.json\r\nverbose loadDefaults application-name@0.0.1\r\nverbose caching C:\\nodejs\\applications\\haml\\node_modules\\express\\package.json\r\nverbose loadDefaults express@2.5.2\r\nverbose caching C:\\nodejs\\applications\\haml\\node_modules\\jade\\package.json\r\nverbose loadDefaults jade@0.19.0\r\nverbose from cache C:\\nodejs\\applications\\haml\\package.json\r\nverbose into C:\\nodejs\\applications\\haml [ 'hamljs' ]\r\nverbose cache add hamljs\r\nverbose cache add [ 'hamljs', null ]\r\nsilly cache add: name, spec, args [ undefined, 'hamljs', [ 'hamljs', null ] ]\r\nverbose parsed url { pathname: 'hamljs', path: 'hamljs', href: 'hamljs' }\r\nverbose addNamed [ 'hamljs', '' ]\r\nverbose addNamed [ null, '' ]\r\nsilly name, range, hasData [ 'hamljs', '', false ]\r\nverbose raw, before any munging hamljs\r\nverbose url resolving [ 'https://registry.npmjs.org/', './hamljs' ]\r\nverbose url resolved https://registry.npmjs.org/hamljs\r\nverbose etag \"A0DVQ7GL4IJM02T2L224ESGW0\"\r\nhttp GET https://registry.npmjs.org/hamljs\r\nsilly get cb [ 304, undefined ]\r\nverbose etag hamljs from cache\r\nverbose mkdir done: C:\\Users\\walter.svekla\\AppData\\Roaming\\npm-cache\\hamljs 755\r\nsilly name, range, hasData 2 [ 'hamljs', '', true ]\r\nsilly versions [ 'hamljs', [ '0.4.5', '0.5.0', '0.5.1', '0.5.2' ] ]\r\nverbose bin dist [ '0.6-ares1.7.5-DEV-evundefined-openssl0.9.8r-v83.6.6.14-win32-ia32-6.1.7601',\r\nverbose bin dist   { shasum: '5dace9b858cdbe1ab27381d85a965d7b16703afa',\r\nverbose bin dist     tarball: 'http://registry.npmjs.org/hamljs/-/hamljs-0.5.2.tgz' } ]\r\nverbose addRemoteTarball [ 'https://registry.npmjs.org/hamljs/-/hamljs-0.5.2.tgz',\r\nverbose addRemoteTarball   '5dace9b858cdbe1ab27381d85a965d7b16703afa' ]\r\nverbose mkdir (expected) error ENOENT, no such file or directory 'C:\\Users\\WALTER~1.SVE\\AppData\\Local\\Temp\\npm-1324397894645'\r\nverbose mkdir (expected) error ENOENT, no such file or directory 'C:\\Users\\WALTER~1.SVE\\AppData\\Local\\Temp\\npm-1324397894645\\1324397894645-0.7143667030613869'\r\nverbose mkdir done: C:\\Users\\WALTER~1.SVE\\AppData\\Local\\Temp\\npm-1324397894645\\1324397894645-0.7143667030613869 755\r\nverbose fetch to C:\\Users\\WALTER~1.SVE\\AppData\\Local\\Temp\\npm-1324397894645\\1324397894645-0.7143667030613869\\tmp.tgz\r\nverbose mkdir done: C:\\Users\\WALTER~1.SVE\\AppData\\Local\\Temp\\npm-1324397894645\\1324397894645-0.7143667030613869 755\r\nhttp GET https://registry.npmjs.org/hamljs/-/hamljs-0.5.2.tgz\r\nERR! ReferenceError: cb is not defined\r\nERR!     at Request.onResponse (C:\\nodejs\\node_modules\\npm\\lib\\utils\\fetch.js:64:20)\r\nERR!     at Request.<anonymous> (C:\\nodejs\\node_modules\\npm\\node_modules\\request\\main.js:180:60)\r\nERR!     at Request.emit (events.js:88:20)\r\nERR!     at ClientRequest.<anonymous> (C:\\nodejs\\node_modules\\npm\\node_modules\\request\\main.js:178:10)\r\nERR!     at ClientRequest.emit (events.js:67:17)\r\nERR!     at CleartextStream.<anonymous> (http.js:1114:11)\r\nERR!     at CleartextStream.emit (events.js:67:17)\r\nERR!     at Socket.onerror (tls.js:1075:17)\r\nERR!     at Socket.emit (events.js:88:20)\r\nERR!     at Array.0 (net.js:313:25)\r\nERR! Report this *entire* log at:\r\nERR!     <http://github.com/isaacs/npm/issues>\r\nERR! or email it to:\r\nERR!     <npm-@googlegroups.com>\r\nERR! \r\nERR! System Windows_NT 6.1.7601\r\nERR! command \"C:\\\\nodejs\\\\\\\\node.exe\" \"C:\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"hamljs\" \"-f\"\r\nERR! cwd C:\\nodejs\\applications\\haml\r\nERR! node -v v0.6.6\r\nERR! npm -v 1.1.0-beta-4\r\nERR! type not_defined\r\nERR! arguments [ 'cb' ]\r\nERR! message cb is not defined\r\nverbose exit [ 1, true ]\r\n","url":"https://api.github.com/repos/isaacs/npm/issues/comments/3221036"},"action":"created"}