Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silently fails to extract #67

Closed
JonWallsten opened this issue Mar 3, 2016 · 1 comment
Closed

Silently fails to extract #67

JonWallsten opened this issue Mar 3, 2016 · 1 comment

Comments

@JonWallsten
Copy link

I'm using the module npm-cache and for some reason it won't extract the modules.
It however works for the bower modules.
This is the code used for both type of modules:

  var extractor = tar.Extract({path: targetPath})
                     .on('error', onError)
                     .on('end', onEnd);

  fs.createReadStream(cachePath)
    .on('error', onError)
    .pipe(extractor);

Cache path: C:\Users\***\.package_cache\npm\3.6.0\6cd7ceb02dc80477b9c0084e50507a72.tar.gz
Size: 115MB
Target path: C:\TeamCity\buildAgent\work\6e8ae23de4bcc9d9\***SE_src\***.SKT\***.SKT.Api\***.SKT.Api\Application

I'm have double checked the paths. They are both correct.
I'm using Windows 2012 Server.

I don't get any error message. Is the error handling applied correctly?
If so, how come I don't get any error?

I have tried to extract the file manually. It works and the structure is fine.

@JonWallsten
Copy link
Author

Turns out npm-cache had created an empty tar.gz in the C:\Users***.package-cache and didn't use the path i specified with "-.cacheDirectory". So I was looking at the wrong file the whole time. False alarm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant