isaacs/npm — Issue #1834: serialport install issue
Author: RIAEvangelist
Created: 2011-12-04 21:30:41+00:00
State: open

I believe this is a windows node-waf compile related issue.

Is there anyway around it, or an alpha that may fix it, you can view the whole thread at : https://github.com/voodootikigod/node-serialport/issues/24

ERR from CMD run as admin:

c:\Program Files\NodeJS>npm install serialport

> serialport@0.6.3 install c:\Program Files\NodeJS\node_modules\serialport
> cd serialport_native;node-waf configure build;cp build/Release/serialport_nati
ve.node ../

The system cannot find the path specified.
npm ERR! error installing serialport@0.6.3 Error: serialport@0.6.3 install: `cd
serialport_native;node-waf configure build;cp build/Release/serialport_native.no
de ../`
npm ERR! error installing serialport@0.6.3 `cmd "/c" "cd serialport_native;node-
waf configure build;cp build/Release/serialport_native.node ../"` failed with 1
npm ERR! error installing serialport@0.6.3 at ChildProcess. (c:\P
rogram Files\NodeJS\node_modules\npm\lib\utils\exec.js:49:20)
npm ERR! error installing serialport@0.6.3 at ChildProcess.emit (events.js:7
0:17)
npm ERR! error installing serialport@0.6.3 at maybeExit (child_process.js:35
9:16)
npm ERR! error installing serialport@0.6.3 at Process.onexit (child_process.
js:395:5)
npm ERR! serialport@0.6.3 install: `cd serialport_native;node-waf configure buil
d;cp build/Release/serialport_native.node ../`
npm ERR! `cmd "/c" "cd serialport_native;node-waf configure build;cp build/Relea
se/serialport_native.node ../"` failed with 1
npm ERR!
npm ERR! Failed at the serialport@0.6.3 install script.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cd serialport_native;node-waf configure build;cp build/Release/seri
alport_native.node ../
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "c:\\Program Files\\NodeJS\\\\node.exe" "c:\\Program Files\\Nod
eJS\\node_modules\\npm\\bin\\npm-cli.js" "install" "serialport"
npm ERR! cwd c:\Program Files\NodeJS
npm ERR! node -v v0.6.5
npm ERR! npm -v 1.1.0-alpha-6
npm ERR! code ELIFECYCLE
npm ERR! message serialport@0.6.3 install: `cd serialport_native;node-waf config
ure build;cp build/Release/serialport_native.node ../`
npm ERR! message `cmd "/c" "cd serialport_native;node-waf configure build;cp bui
ld/Release/serialport_native.node ../"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! c:\Program Files\NodeJS\npm-debug.log
npm not ok

LOG FIle :

info it worked if it ends with ok
verbose cli [ 'c:\\Program Files\\NodeJS\\\\node.exe',
verbose cli 'c:\\Program Files\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js',
verbose cli 'install',
verbose cli 'serialport' ]
info using npm@1.1.0-alpha-6
info using node@v0.6.5
verbose config file C:\Users\Foxy\.npmrc
verbose config file c:\Program Files\NodeJS\etc\npmrc
verbose config file c:\Program Files\NodeJS\node_modules\npm\npmrc
verbose mkdir done: c:\Program Files\NodeJS 755
verbose caching c:\Program Files\NodeJS\node_modules\npm\package.json
verbose loadDefaults npm@1.1.0-alpha-6
verbose into c:\Program Files\NodeJS [ 'serialport' ]
verbose cache add serialport
verbose cache add [ 'serialport', null ]
silly cache add: name, spec, args [ undefined, 'serialport', [ 'serialport', null ] ]
verbose parsed url { pathname: 'serialport',
verbose parsed url path: 'serialport',
verbose parsed url href: 'serialport' }
info addNamed [ 'serialport', '' ]
verbose addNamed [ null, '' ]
verbose GET serialport
verbose raw, before any munging serialport
verbose url resolving [ 'https://registry.npmjs.org/', './serialport' ]
verbose url resolved https://registry.npmjs.org/serialport
verbose etag "DM3DFXDG0DTMYOPAYPUUBWEDE"
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb etag: '"DM3DFXDG0DTMYOPAYPUUBWEDE"',
silly get cb date: 'Sun, 04 Dec 2011 21:29:15 GMT',
silly get cb 'content-length': '0' } ]
verbose etag serialport from cache
verbose mkdir done: C:\Users\Foxy\AppData\Roaming\npm-cache\serialport 755
verbose GET serialport/0.6.3
verbose raw, before any munging serialport/0.6.3
verbose url resolving [ 'https://registry.npmjs.org/', './serialport/0.6.3' ]
verbose url resolved https://registry.npmjs.org/serialport/0.6.3
verbose etag "DM3DFXDG0DTMYOPAYPUUBWEDE"
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb etag: '"DM3DFXDG0DTMYOPAYPUUBWEDE"',
silly get cb date: 'Sun, 04 Dec 2011 21:29:17 GMT',
silly get cb 'content-length': '0' } ]
verbose etag serialport/0.6.3 from cache
verbose mkdir done: C:\Users\Foxy\AppData\Roaming\npm-cache\serialport\0.6.3 755
verbose bin dist [ '0.6-ares1.7.5-DEV-evundefined-openssl0.9.8r-v83.6.6.11-win32-ia32-6.1.7600',
verbose bin dist { shasum: '4ddcbaa239da037ddeb01866b46bb13d46892c28',
verbose bin dist tarball: 'http://registry.npmjs.org/serialport/-/serialport-0.6.3.tgz' } ]
verbose caching C:\Users\Foxy\AppData\Roaming\npm-cache\serialport\0.6.3\package\package.json
verbose loadDefaults serialport@0.6.3
silly resolved [ { name: 'serialport',
silly resolved version: '0.6.3',
silly resolved description: 'Welcome your robotic javascript overlords. Better yet, program them!',
silly resolved author: { name: 'Chris Williams', email: 'voodootikigod@gmail.com' },
silly resolved main: './serialport',
silly resolved repository:
silly resolved { type: 'git',
silly resolved url: 'git://github.com/voodootikigod/node-serialport.git' },
silly resolved scripts: { install: 'cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../' },
silly resolved engines: { node: '0.6' },
silly resolved _id: 'serialport@0.6.3',
silly resolved contributors:
silly resolved [ { name: 'Chris Williams', email: 'chris@iterativedesigns.com' },
silly resolved { name: 'Esa-Matti Suuronen', email: 'esa-matti@suuronen.org' },
silly resolved { name: 'Nathan Rajlich', email: 'nathan@tootallnate.net' },
silly resolved { name: 'Rick Waldron', email: 'waldron.rick@gmail.com' },
silly resolved { email: 'w1nk' } ],
silly resolved dependencies: {},
silly resolved devDependencies: {},
silly resolved _engineSupported: true,
silly resolved _npmVersion: '1.1.0-alpha-6',
silly resolved _nodeVersion: 'v0.6.5',
silly resolved _defaultsLoaded: true } ]
info into c:\Program Files\NodeJS serialport@0.6.3
info installOne serialport@0.6.3
info unbuild c:\Program Files\NodeJS\node_modules\serialport
verbose caching c:\Program Files\NodeJS\node_modules\serialport\package.json
verbose loadDefaults serialport@0.6.3
info preuninstall serialport@0.6.3
info uninstall serialport@0.6.3
verbose unbuild serialport@0.6.3 [ true,
verbose unbuild serialport@0.6.3 'c:\\Program Files\\NodeJS\\node_modules',
verbose unbuild serialport@0.6.3 'c:\\Program Files\\NodeJS\\node_modules' ]
info postuninstall serialport@0.6.3
verbose from cache C:\Users\Foxy\AppData\Roaming\npm-cache\serialport\0.6.3\package\package.json
verbose mkdir (expected) error ENOENT, no such file or directory 'c:\Program Files\NodeJS\node_modules\___serialport.npm'
verbose mkdir done: c:\Program Files\NodeJS\node_modules\___serialport.npm 755
verbose unpack_ uid, gid [ undefined, undefined ]
verbose unpackTarget c:\Program Files\NodeJS\node_modules\serialport
silly gunzTarPerm modes [ '755', '644' ]
silly afterUntar undefined
verbose gunzed c:\Program Files\NodeJS\node_modules\___serialport.npm\package
verbose rm'ed c:\Program Files\NodeJS\node_modules\serialport
verbose renamed [ 'c:\\Program Files\\NodeJS\\node_modules\\___serialport.npm\\package',
verbose renamed 'c:\\Program Files\\NodeJS\\node_modules\\serialport' ]
verbose caching c:\Program Files\NodeJS\node_modules\serialport\package.json
verbose loadDefaults serialport@0.6.3
info preinstall serialport@0.6.3
verbose from cache c:\Program Files\NodeJS\node_modules\serialport\package.json
verbose into c:\Program Files\NodeJS\node_modules\serialport []
silly resolved []
verbose about to build c:\Program Files\NodeJS\node_modules\serialport
info build c:\Program Files\NodeJS\node_modules\serialport
verbose from cache c:\Program Files\NodeJS\node_modules\serialport\package.json
verbose linkStuff [ false, false, false, 'c:\\Program Files\\NodeJS\\node_modules' ]
info linkStuff serialport@0.6.3
verbose linkBins serialport@0.6.3
verbose linkMans serialport@0.6.3
verbose rebuildBundles serialport@0.6.3
info install serialport@0.6.3
verbose unsafe-perm in lifecycle true
silly exec cmd "/c" "cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../"
silly spawning [ 'cmd',
silly spawning [ '/c',
silly spawning 'cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../' ],
silly spawning 'c:\\Program Files\\NodeJS\\node_modules\\serialport' ]
info serialport@0.6.3 Failed to exec install script
ERR! error installing serialport@0.6.3 Error: serialport@0.6.3 install: `cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../`
ERR! error installing serialport@0.6.3 `cmd "/c" "cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../"` failed with 1
ERR! error installing serialport@0.6.3 at ChildProcess. (c:\Program Files\NodeJS\node_modules\npm\lib\utils\exec.js:49:20)
ERR! error installing serialport@0.6.3 at ChildProcess.emit (events.js:70:17)
ERR! error installing serialport@0.6.3 at maybeExit (child_process.js:359:16)
ERR! error installing serialport@0.6.3 at Process.onexit (child_process.js:395:5)
info unbuild c:\Program Files\NodeJS\node_modules\serialport
verbose from cache c:\Program Files\NodeJS\node_modules\serialport\package.json
info preuninstall serialport@0.6.3
info uninstall serialport@0.6.3
verbose unbuild serialport@0.6.3 [ true,
verbose unbuild serialport@0.6.3 'c:\\Program Files\\NodeJS\\node_modules',
verbose unbuild serialport@0.6.3 'c:\\Program Files\\NodeJS\\node_modules' ]
info postuninstall serialport@0.6.3
verbose installOne cb serialport@0.6.3
ERR! serialport@0.6.3 install: `cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../`
ERR! `cmd "/c" "cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../"` failed with 1
ERR!
ERR! Failed at the serialport@0.6.3 install script.
ERR! This is most likely a problem with the serialport package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR! cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../
ERR! You can get their info via:
ERR! npm owner ls serialport
ERR! There is likely additional logging output above.
ERR!
ERR! System Windows_NT 6.1.7600
ERR! command "c:\\Program Files\\NodeJS\\\\node.exe" "c:\\Program Files\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js" "install" "serialport"
ERR! cwd c:\Program Files\NodeJS
ERR! node -v v0.6.5
ERR! npm -v 1.1.0-alpha-6
ERR! code ELIFECYCLE
ERR! message serialport@0.6.3 install: `cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../`
ERR! message `cmd "/c" "cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../"` failed with 1
verbose exit [ 1, true ]