isaacs/npm — Issue #1633: bsdtar failing
Author: chowey
Created: 2011-10-31 19:09:22+00:00
State: open

I am using npm on Windows 7. I tried installing jade `npm install jade -gf --verbose` and get the following error:

npm verb unpackTarget C:\Users\cam\AppData\Local\Temp\npm-1320085892283\13200858
92283-0.7220084029249847\contents\package
FATAL ERROR: JS Allocation failed - process out of memory

Since npm on Windows uses bsdtar to unpack files, I tried using bsdtar directly to unpack `tmp.tgz`. When I do so, I get the following:

>basic-bsdtar -xf tmp.tgz
package/lib/index.js: Can't create 'package/lib/index.js'
package/support/sass/index.js: Can't create 'package/support/sass/index.js'
basic-bsdtar.exe: Error exit delayed from previous errors.

The rest of the files from tmp.tgz extracted with no problem. I verified this by comparing with 7zip, which extracts everything with no errors. The only difference between bsdtar and 7zip are that these two `index.js` files don't extract with bsdtar.

As far as I can tell, this is what is killing npm.

bsdtar cannot unpack files called `index.js`?

Maybe this isn't an issue with npm itself, but it prevents me from installing jade.