christkv/node-mongodb-native — Issue #483: Windows npm install fails...
Author: recursivevirus
Created: 2012-01-20 02:58:50+00:00
State: open

Hey. Having to work with node/npm on Windows and it looks like the mongodb module isn't installing correctly. I know this stuff is very new on Windows but thought I'd post this in case there's something that can be done with the module itself.
This is a pretty standard Windows 7 install. node.js and npm were installed together (v0.6.7) with the windows installer.

```
verbose raw, before any munging mongodb
verbose url resolving [ 'https://registry.npmjs.org/', './mongodb' ]
verbose url resolved https://registry.npmjs.org/mongodb
http GET https://registry.npmjs.org/mongodb
http 200 https://registry.npmjs.org/mongodb
silly get cb [ 200,
silly get cb { vary: 'Accept',
silly get cb server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb etag: '"BOK83X0YXC03ESXJXLV2BO4E"',
silly get cb date: 'Fri, 20 Jan 2012 02:42:40 GMT',
silly get cb 'content-type': 'application/json',
silly get cb 'content-length': '302405' } ]
verbose mkdir done: C:\Users\hernan\AppData\Roaming\npm-cache\mongodb 755
silly name, range, hasData 2 [ 'mongodb', '', true ]
silly versions [ 'mongodb',
silly versions [ '0.9.4',
silly versions '0.9.4-4',
silly versions '0.9.3',
silly versions '0.9.1',
silly versions '0.9.2',
silly versions '0.9.6-7',
silly versions '0.9.6-8',
silly versions '0.9.6-9',
silly versions '0.9.6-10',
silly versions '0.9.6-11',
silly versions '0.9.6-12',
silly versions '0.9.6-13',
silly versions '0.9.6-14',
silly versions '0.9.6-15',
silly versions '0.9.6-16',
silly versions '0.9.6-17',
silly versions '0.9.6-18',
silly versions '0.9.6-19',
silly versions '0.9.6-20',
silly versions '0.9.6-21',
silly versions '0.9.6-22',
silly versions '0.9.6-23',
silly versions '0.9.7',
silly versions '0.9.7-0',
silly versions '0.9.7-1',
silly versions '0.9.7-1.1',
silly versions '0.9.7-1.2',
silly versions '0.9.7-1.3',
silly versions '0.9.7-1.4',
silly versions '0.9.7-2',
silly versions '0.9.7-2-1',
silly versions '0.9.7-2-2',
silly versions '0.9.7-2-3',
silly versions '0.9.7-2-4',
silly versions '0.9.7-2-5',
silly versions '0.9.7-3',
silly versions '0.9.7-3-1',
silly versions '0.9.7-3-2',
silly versions '0.9.7-3-3',
silly versions '0.9.7-3-4',
silly versions '0.9.7-3-5',
silly versions '0.9.8',
silly versions '0.9.8-1' ] ]
verbose bin dist [ '0.6-ares1.7.5-DEV-evundefined-openssl0.9.8r-v83.6.6.15-win32-ia32-6.1.7601',
verbose bin dist { shasum: '27ede54e500739aa67df4f0bcf5d012d8a47284a',
verbose bin dist tarball: 'http://registry.npmjs.org/mongodb/-/mongodb-0.9.8-1.tgz' } ]
verbose addRemoteTarball [ 'https://registry.npmjs.org/mongodb/-/mongodb-0.9.8-1.tgz',
verbose addRemoteTarball '27ede54e500739aa67df4f0bcf5d012d8a47284a' ]
verbose mkdir (expected) error ENOENT, no such file or directory 'C:\Users\hernan\AppData\Local\Temp\npm-1327113737873'
verbose mkdir (expected) error ENOENT, no such file or directory 'C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229'
verbose mkdir done: C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229 755
verbose fetch to C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\tmp.tgz
verbose mkdir done: C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229 755
http GET https://registry.npmjs.org/mongodb/-/mongodb-0.9.8-1.tgz
http 200 https://registry.npmjs.org/mongodb/-/mongodb-0.9.8-1.tgz
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 35752
info shasum 27ede54e500739aa67df4f0bcf5d012d8a47284a
info shasum C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\tmp.tgz
verbose mkdir (expected) error ENOENT, no such file or directory 'C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\___package.npm'
verbose mkdir done: C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\___package.npm 755
verbose unpack_ uid, gid [ undefined, undefined ]
verbose unpackTarget C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\package
silly gunzTarPerm modes [ '755', '644' ]
silly afterUntar undefined
verbose gunzed C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\___package.npm\package
verbose rm'ed C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\package
verbose renamed [ 'C:\\Users\\hernan\\AppData\\Local\\Temp\\npm-1327113737873\\1327113737873-0.9170703589916229\\___package.npm\\package',
verbose renamed 'C:\\Users\\hernan\\AppData\\Local\\Temp\\npm-1327113737873\\1327113737873-0.9170703589916229\\package' ]
verbose caching C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\package\package.json
verbose loadDefaults mongodb@0.9.8-1
verbose tarball contents [ 'package', 'tmp.tgz' ]
verbose from cache C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\package\package.json
verbose pack C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\package
verbose pack C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\package C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\package.tgz
silly makeList C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\package
verbose caching C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\package\deps\step\package.json
verbose loadDefaults step@0.0.4
verbose caching C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\package\deps\gleak\package.json
verbose loadDefaults gleak@0.2.1
WARN nodeunit@0.5.1 package.json: bugs['web'] should probably be bugs['url']
verbose caching C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\package\deps\nodeunit\package.json
verbose loadDefaults nodeunit@0.5.1
silly dir, dirLen [ 'C:\\Users\\hernan\\AppData\\Local\\Temp\\npm-1327113737873\\1327113737873-0.9170703589916229\\package\\deps\\step',
silly dir, dirLen 104 ]
silly dir, dirLen [ 'C:\\Users\\hernan\\AppData\\Local\\Temp\\npm-1327113737873\\1327113737873-0.9170703589916229\\package\\deps\\gleak',
silly dir, dirLen 105 ]
silly dir, dirLen [ 'C:\\Users\\hernan\\AppData\\Local\\Temp\\npm-1327113737873\\1327113737873-0.9170703589916229\\package\\deps\\nodeunit',
silly dir, dirLen 108 ]
silly dir, dirLen [ 'C:\\Users\\hernan\\AppData\\Local\\Temp\\npm-1327113737873\\1327113737873-0.9170703589916229\\package',
silly dir, dirLen 94 ]
verbose tarball C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\package.tgz
verbose parent C:\Users\hernan\AppData\Local\Temp\npm-1327113737873\1327113737873-0.9170703589916229\package
verbose mkdir (expected) error ENOENT, no such file or directory 'C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\___package.npm'
verbose mkdir done: C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\___package.npm 755
verbose unpack_ uid, gid [ undefined, undefined ]
verbose unpackTarget C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\package
silly gunzTarPerm modes [ '755', '644' ]
silly afterUntar undefined
verbose gunzed C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\___package.npm\package
verbose rm'ed C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\package
verbose renamed [ 'C:\\Users\\hernan\\AppData\\Roaming\\npm-cache\\mongodb\\0.9.8-1\\___package.npm\\package',
verbose renamed 'C:\\Users\\hernan\\AppData\\Roaming\\npm-cache\\mongodb\\0.9.8-1\\package' ]
verbose caching C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\package\package.json
verbose loadDefaults mongodb@0.9.8-1
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 34885
info shasum fa0bf1189a0b1b6a8874fbe7808a6e9f83f883f3
info shasum C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\package.tgz
verbose from cache C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\package\package.json
verbose chmod C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\package.tgz 644
silly skipping chown for windows C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\package.tgz
silly resolved [ { name: 'mongodb',
silly resolved description: 'A node.js driver for MongoDB',
silly resolved keywords: [ 'mongodb', 'mongo', 'driver', 'db' ],
silly resolved version: '0.9.8-1',
silly resolved author: { name: 'Christian Amor Kvalheim', email: 'christkv@gmail.com' },
silly resolved contributors:
silly resolved [ { name: 'Aaron Heckmann' },
silly resolved { name: 'Christoph Pojer' },
silly resolved { name: 'Pau Ramon Revilla' },
silly resolved { name: 'Nathan White' },
silly resolved { name: 'Emmerman' },
silly resolved { name: 'Seth LaForge' },
silly resolved { name: 'Boris Filipov' },
silly resolved { name: 'Stefan Schärmeli' },
silly resolved { name: 'Tedde Lundgren' },
silly resolved { name: 'renctan' },
silly resolved { name: 'Sergey Ukustov' },
silly resolved { name: 'Ciaran Jessup' },
silly resolved { name: 'kuno' },
silly resolved { name: 'srimonti' },
silly resolved { name: 'Erik Abele' },
silly resolved { name: 'Pratik Daga' },
silly resolved { name: 'Slobodan Utvic' },
silly resolved { name: 'Kristina Chodorow' },
silly resolved { name: 'Yonathan Randolph' },
silly resolved { name: 'Brian Noguchi' },
silly resolved { name: 'Sam Epstein' },
silly resolved { name: 'James Harrison Fisher' },
silly resolved { name: 'Vladimir Dronnikov' },
silly resolved { name: 'Ben Hockey' },
silly resolved { name: 'Henrik Johansson' },
silly resolved { name: 'Simon Weare' },
silly resolved { name: 'Alex Gorbatchev' },
silly resolved { name: 'Shimon Doodkin' },
silly resolved { name: 'Kyle Mueller' },
silly resolved { name: 'Eran Hammer-Lahav' },
silly resolved { name: 'Marcin Ciszak' },
silly resolved { name: 'François de Metz' },
silly resolved { name: 'Vinay Pulim' },
silly resolved { name: 'nstielau' },
silly resolved { name: 'Adam Wiggins' },
silly resolved { name: 'entrinzikyl' },
silly resolved { name: 'Jeremy Selier' },
silly resolved { name: 'Ian Millington' },
silly resolved { name: 'Public Keating' },
silly resolved { name: 'andrewjstone' },
silly resolved { name: 'Christopher Stott' },
silly resolved { name: 'Corey Jewett' },
silly resolved { name: 'brettkiefer' },
silly resolved { name: 'Rob Holland' },
silly resolved { name: 'Senmiao Liu' },
silly resolved { name: 'heroic' },
silly resolved { name: 'gitfy' },
silly resolved { name: 'Andrew Stone' },
silly resolved { name: 'John Le Drew' } ],
silly resolved repository:
silly resolved { type: 'git',
silly resolved url: 'git://github.com/christkv/node-mongodb-native.git' },
silly resolved bugs:
silly resolved { email: 'node-mongodb-native@googlegroups.com',
silly resolved url: 'http://github.com/christkv/node-mongodb-native/issues' },
silly resolved os: [ 'linux', 'darwin', 'freebsd' ],
silly resolved config: { native: false },
silly resolved main: './lib/mongodb/index',
silly resolved directories: { lib: './lib/mongodb' },
silly resolved engines: { node: '>=0.4.0' },
silly resolved scripts: { install: 'node install.js' },
silly resolved licenses:
silly resolved [ { type: 'Apache License, Version 2.0',
silly resolved url: 'http://www.apache.org/licenses/LICENSE-2.0' } ],
silly resolved _id: 'mongodb@0.9.8-1',
silly resolved dependencies: {},
silly resolved devDependencies: {},
silly resolved _engineSupported: true,
silly resolved _npmVersion: '1.1.0-beta-10',
silly resolved _nodeVersion: 'v0.6.7',
silly resolved _defaultsLoaded: true,
silly resolved dist: { shasum: 'fa0bf1189a0b1b6a8874fbe7808a6e9f83f883f3' } } ]
info into C:\Users\hernan\dev\ngCore-Server\ngCore mongodb@0.9.8-1
info installOne mongodb@0.9.8-1
info unbuild C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\mongodb
verbose from cache C:\Users\hernan\AppData\Roaming\npm-cache\mongodb\0.9.8-1\package\package.json
verbose mkdir (expected) error ENOENT, no such file or directory 'C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\___mongodb.npm'
verbose mkdir done: C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\___mongodb.npm 755
verbose unpack_ uid, gid [ undefined, undefined ]
verbose unpackTarget C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\mongodb
silly gunzTarPerm modes [ '755', '644' ]
silly afterUntar undefined
verbose gunzed C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\___mongodb.npm\package
verbose rm'ed C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\mongodb
verbose renamed [ 'C:\\Users\\hernan\\dev\\ngCore-Server\\ngCore\\node_modules\\___mongodb.npm\\package',
verbose renamed 'C:\\Users\\hernan\\dev\\ngCore-Server\\ngCore\\node_modules\\mongodb' ]
verbose caching C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\mongodb\package.json
verbose loadDefaults mongodb@0.9.8-1
info preinstall mongodb@0.9.8-1
verbose from cache C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\mongodb\package.json
verbose into C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\mongodb []
silly resolved []
verbose about to build C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\mongodb
info build C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\mongodb
verbose from cache C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\mongodb\package.json
verbose linkStuff [ false,
verbose linkStuff false,
verbose linkStuff false,
verbose linkStuff 'C:\\Users\\hernan\\dev\\ngCore-Server\\ngCore\\node_modules' ]
info linkStuff mongodb@0.9.8-1
verbose linkBins mongodb@0.9.8-1
verbose linkMans mongodb@0.9.8-1
verbose rebuildBundles mongodb@0.9.8-1
info install mongodb@0.9.8-1
verbose unsafe-perm in lifecycle true
silly exec cmd "/c" "node install.js"
silly spawning [ 'cmd',
silly spawning [ '/c', 'node install.js' ],
silly spawning 'C:\\Users\\hernan\\dev\\ngCore-Server\\ngCore\\node_modules\\mongodb' ]
info mongodb@0.9.8-1 Failed to exec install script
ERR! error installing mongodb@0.9.8-1
info unbuild C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\mongodb
verbose from cache C:\Users\hernan\dev\ngCore-Server\ngCore\node_modules\mongodb\package.json
info preuninstall mongodb@0.9.8-1
info uninstall mongodb@0.9.8-1
verbose unbuild mongodb@0.9.8-1 [ true,
verbose unbuild mongodb@0.9.8-1 'C:\\Users\\hernan\\dev\\ngCore-Server\\ngCore\\node_modules',
verbose unbuild mongodb@0.9.8-1 'C:\\Users\\hernan\\dev\\ngCore-Server\\ngCore\\node_modules' ]
info postuninstall mongodb@0.9.8-1
verbose installOne cb mongodb@0.9.8-1
ERR! mongodb@0.9.8-1 install: `node install.js`
ERR! `cmd "/c" "node install.js"` failed with 1
ERR!
ERR! Failed at the mongodb@0.9.8-1 install script.
ERR! This is most likely a problem with the mongodb package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR! node install.js
ERR! You can get their info via:
ERR! npm owner ls mongodb
ERR! There is likely additional logging output above.
ERR!
ERR! System Windows_NT 6.1.7601
ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
ERR! cwd C:\Users\hernan\dev\ngCore-Server\ngCore
ERR! node -v v0.6.7
ERR! npm -v 1.1.0-beta-10
ERR! code ELIFECYCLE
ERR! message mongodb@0.9.8-1 install: `node install.js`
ERR! message `cmd "/c" "node install.js"` failed with 1
verbose exit [ 1, true ]
```