Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Unpack error installing under Windows (still) #1555

Closed
jrivett opened this Issue Oct 14, 2011 · 9 comments

Comments

Projects
None yet
3 participants

jrivett commented Oct 14, 2011

Sorry to do this to you, but I'm still getting this unpack error in Windows XP. I updated node to 0.5.9 and grabbed npm from github again, which actually gave me version 1.0.97, not 1.0.96. Still get this:

C:\npm>node cli.js install npm -gf
npm ERR! couldn't unpack C:\DOCUME~1\jeff\LOCALS~1\Temp\npm-1318619641188\1318619641188-0.3295586744789034\tmp.tgz to C:\DOCUME~1\jeff\LOCALS~1\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents
npm ERR! Error: UNKNOWN, The operation completed successfully.
npm ERR!  'C:/DOCUME~1/jeff/LOCALS~1/Temp/npm-1318619641188/1318619641188-0.3295586744789034/contents/___package.npm/package'
npm ERR! Report this *entire* log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR!
npm ERR! System Windows_NT 5.1.2600
npm ERR! command "node" "C:\\npm\\cli.js" "install" "npm" "-gf"
npm ERR! cwd C:\npm
npm ERR! node -v v0.5.9
npm ERR! npm -v 1.0.97
npm ERR! path C:/DOCUME~1/jeff/LOCALS~1/Temp/npm-1318619641188/1318619641188-0.3295586744789034/contents/___package.npm/package
npm ERR! code UNKNOWN
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\npm\npm-debug.log
npm not ok
Owner

isaacs commented Oct 14, 2011

Please upload that c:\npm\npm-debug.log file to gist.github.com or pastie.org or something.

@isaacs isaacs closed this Oct 14, 2011

jrivett commented Oct 14, 2011

Uploaded npm-debug.log as requested:
https://gist.github.com/1288398

Owner

isaacs commented Oct 14, 2011

Thanks. Nothing too helpful in there, unfortunately.

What's in the C:\DOCUME1\jeff\LOCALS1\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents folder? Anything?

jrivett commented Oct 14, 2011

Yup, it contains all this:

"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\.gitignore"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\.gitmodules"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\.npmignore"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\AUTHORS"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\bin"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\cli.js"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\configure"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\deps"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\doc"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\html"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\lib"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\LICENSE"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\Makefile"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\man"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\node_modules"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\npm.js"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\package.json"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\README.md"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\scripts"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\test"
"C:\Documents and Settings\jeff\Local Settings\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents\___package.npm\package\unpacked.txt"
Owner

isaacs commented Oct 14, 2011

Aha! I'm able to reproduce by doing this:

npm cache clean
npm install underscore dnode npm dnode coffee-script riak-js

That is, install a bunch of packages all at once, with a clean cache.

Now to figure out what the heck is actually happening here...

Owner

isaacs commented Oct 17, 2011

Fixed on npm 1.0.99

jrivett commented Oct 17, 2011

Grabbed 1.0.99 from github, but I'm still getting the error below.
Log: https://gist.github.com/1293059
.............................
C:\npm>node cli.js install npm -gf
npm ERR! couldn't unpack C:\DOCUME1\jeff\LOCALS1\Temp\npm-1318870050536\1318870050536-0.2631610862445086\tmp.tgz to C:\DOCUME1\jeff\LOCALS1\Temp\npm-1318870050536\1318870050536-0.2631610862445086\contents
npm ERR! Error: UNKNOWN, The operation completed successfully.
npm ERR! 'C:/DOCUME1/jeff/LOCALS1/Temp/npm-1318870050536/1318870050536-0.2631610862445086/contents/___package.npm/package'
npm ERR! Report this entire log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR!
npm ERR! System Windows_NT 5.1.2600
npm ERR! command "node" "C:\npm\cli.js" "install" "npm" "-gf"
npm ERR! cwd C:\npm
npm ERR! node -v v0.5.9
npm ERR! npm -v 1.0.99
npm ERR! path C:/DOCUME1/jeff/LOCALS1/Temp/npm-1318870050536/1318870050536-0.2631610862445086/contents/___package.npm/package
npm ERR! code UNKNOWN
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\npm\npm-debug.log
npm not ok

wadey pushed a commit to simplegeo/npm that referenced this issue Oct 19, 2011

Fix #1555 Queue tar operations for windows
*Really* need to get a js tar implementation in there asap.

jrivett commented Oct 26, 2011

Still getting the same error on Windows XP with NPM 1.0.103.

Just to echo the main theme: I also get this error but only with certain plugins.

I can't help noticing that at least two of the plugins that cause these trouble come from visionmedia (hamljs @ https://github.com/visionmedia/haml.js and jade @ https://github.com/visionmedia/jade). I thought you might be able to deduce something from this.

Also, I am on WinXP and sometimes npm crashes node with the following message "node.exe has encountered a problem and needs to close.". Specifically with "npm install hamljs" - no npm-debug.log is written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment