Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Unpack error installing under Windows (still) #1555

Closed
jrivett opened this Issue · 9 comments

3 participants

@jrivett

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
@isaacs
Owner

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

@isaacs isaacs closed this
@jrivett

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

@isaacs
Owner

Thanks. Nothing too helpful in there, unfortunately.

What's in the C:\DOCUME~1\jeff\LOCALS~1\Temp\npm-1318619641188\1318619641188-0.3295586744789034\contents folder? Anything?

@jrivett

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"
@isaacs
Owner

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...

@isaacs
Owner

Fixed on npm 1.0.99

@jrivett

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:\DOCUME~1\jeff\LOCALS~1\Temp\npm-1318870050536\1318870050536-0.2631610862445086\tmp.tgz to C:\DOCUME~1\jeff\LOCALS~1\Temp\npm-1318870050536\1318870050536-0.2631610862445086\contents
npm ERR! Error: UNKNOWN, The operation completed successfully.
npm ERR! 'C:/DOCUME~1/jeff/LOCALS~1/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:/DOCUME~1/jeff/LOCALS~1/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 wadey referenced this issue from a commit in simplegeo/npm
@isaacs isaacs Fix #1555 Queue tar operations for windows
*Really* need to get a js tar implementation in there asap.
0f7ffc2
@jrivett

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

@ulrikkold

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
Something went wrong with that request. Please try again.