isaacs/npm — pull request #1665 by betalb (2011-11-07 10:13:29+00:00)
Title: Recommend to turn off antivirus software on Windows during installation

It seems that antivirus software (at least Microsoft Security Essentials) breaks npm installation on windows. It locks some files and `tar` fails on line 178 https://github.com/isaacs/npm/blob/master/lib/utils/tar.js#L178

I have the following error, but I don't know which error message was return by OS, because it's in Russian and after some reencodings it was converted to something unreadable

npm ERR! couldn't unpack C:\Users\BETALB~1.HYP\AppData\Local\Temp\npm-1320659412171\1320659412171-0.21731988084502518\tmp.tgz to C:\Users\BETALB~1.HYP\AppData\Local\Temp\npm-1320659412171\1320659412171-0.21731988084502518\contents
npm ERR! Error: UNKNOWN, �������� ������� ���������.
npm ERR! 'C:/Users/BETALB~1.HYP/AppData/Local/Temp/npm-1320659412171/1320659412171-0.21731988084502518/contents/___package.npm/package'
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "node" "D:\\betalb\\nodejs\\npm\\cli.js" "install" "npm" "-gf"
npm ERR! cwd D:\betalb\nodejs\npm
npm ERR! node -v v0.6.0
npm ERR! npm -v 1.0.104
npm ERR! path C:/Users/BETALB~1.HYP/AppData/Local/Temp/npm-1320659412171/1320659412171-0.21731988084502518/contents/___package.npm/package
npm ERR! code UNKNOWN
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\betalb\nodejs\npm\npm-debug.log
npm not ok

So as a quick fix I propose to recommend turing off Antivirus software while installing npm