nodeload icon indicating copy to clipboard operation
nodeload copied to clipboard

Colon in file name fails on Windows

Open hansmalherbe opened this issue 12 years ago • 6 comments

Failure

npm install nodeload fails with npm ERR! Error: ENOENT, open 'C:\Users\Hans\AppData\Local\Temp\npm-1340271001668\1340271001668-0.7088631778024137\package\results-2012-02-01T05:32:46.827Z-stats .log'

Error

verbose unpack C:\Users\Hans\AppData\Local\Temp\npm-1340271990814\1340271990814-0.479529005009681\tmp.tgz failed to unpack the file results-2012-02-01T05:32:46.827Z-stats.log

Fault

Colons (:) in the name of the file results-2012-02-01T05:32:46.827Z-stats.log makes it invalid in NTFS.

hansmalherbe avatar Jun 21 '12 10:06 hansmalherbe

+1 - I got the same problem here.

Any ideas how to work around this?

I'd love using nodeload on my Windows system!

jsalonen avatar Aug 18 '12 19:08 jsalonen

Sorry, no. I'm just using request from mikeal now.

hansmalherbe avatar Aug 28 '12 10:08 hansmalherbe

Yeah. Sigh :(

Guess I'm gonna fall back something like that as well :/

Also I have to say I have been much less worried about performance since I installed nodetime (https://nodetime.com/) and started monitoring our app with that.

jsalonen avatar Aug 28 '12 12:08 jsalonen

Hey guys. Thanks for writing and for the interest in nodeload. Nodeload isn't being actively developed at this point. Feel free to fork and run with it. I should update the READ doc saying as much.

benschmaus avatar Aug 28 '12 15:08 benschmaus

Thanks for the update! I definitely suggest updating the read file. If anyone is gonna fork, please let us know!

jsalonen avatar Aug 29 '12 05:08 jsalonen

This thing has been forked enough already. I patched nodeload.js and made a gist. Hopefully someone will take this work and integrate it into an active fork.

If you really want this to work on Windows, you can download the repository as a zip: nodeload-master.js

and then replace nodeload.js with this patched file: nodeload.js

I basically just stripped the bad characters out of the return of Date.toISOString(). The real modifications should be made to lib\monitoring\statslogger.js and lib/reporting/report.js. The bug was introduced in this commit: Change log file names to use toISOString() rather than millis

waylonflinn avatar Nov 14 '12 03:11 waylonflinn