-
Notifications
You must be signed in to change notification settings - Fork 7
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
binaries folder not created in node_modules/node-7z-archive #31
Comments
This is no wrapper of You should just delete whatever version you currently using, the whole folder, then do: Check the CI test run https://github.com/TheTechsTech/node-7z-archive/actions. You have an issue with your system. |
OK, sorry, probably I've read wrong in internet
maybe, but i've tried with a fresh brand new thank you for your response |
Same here, I am currently having the problem of missing binaries in
|
I can confirm the issue under WSL. I created a new folder did This package needs I deleted everything in the folder and did
This package hasn't been updated to current 7z version and the Republished with |
Great! It works now, thanks |
Is this happening again ? |
Depends, What is your system setup/config and versions? At this time I'm not using |
Happening here as well.
in error thrown is EDIT: upon removing and then installing again the binaries now show up and works as normal, strange that this also happened to multiple other deployments for me
|
The GitHub Actions CI is not testing against Node v20, deleting and reinstalling might just be the fix. |
I can't get the remove/install thing to reliably work (or work at all since my last post). In my other environments (also Linux), the
and in the working dev environment it looks likes this
is it extracting the wrong installation (windows instead of detecting linux)? |
No, the 7zip files would be automatically deleted after extracting, the binary files has actually downloaded but not extracted. I haven't tested anything under Node v20, that too could be the issue. Also an Linux install should prompt for password because the host needs What is log messages displayed when you run |
Note on Windows and MacOS installs, the |
Coming here with the same issue, npm i gives me the following. I am on Node v20.
UPDATE: Oh curious that worked, I am not sure why. |
I couldn't get it to reliably install correctly across deployments so I ended up just baking in the binaries folder into my repo and copying it over as needed. There is also no errors shown during the install when it happens. |
The install process is different among Windows, macOS, and Linux. I haven't tested anything beyond Node v18. There seems to be an issue with previous installs, so it's best to just manually delete |
@bilwit yep same, I am trying to build my container now that my test envs working and having the same issue. It looks like for some reason the dependencies aren't being installed, I think you need to manually add node-unar to package.json as that's what I did right before my test env worked. I am going to test now though and will update. UPDATE: I'm done troubleshooting for now but this is where I am at. I was using nextjs standalone output which I thought was the issue but now that I am copying my full build to my image I am still having issues. The only thing I haven't tried that I did do on my testing machine is npm i unar, so my guess is that will solve my issues but will have to report back later when I get a chance to test. |
I just checked my local Node version, it's Node v16, I'm not really using JS lately. I will try getting around to updating to newer version to track down issue. I believe might be some version changes when installing around security.
|
For people having this problem with Bun, you need to trust the script using |
I've recently noticed this strange behavior:
installing the package (npm install -S node-7z-archive) and trying to compress or extract something, I get the error:
Error: spawn <... my path ... bla bla bla ...>\node_modules\node-7z-archive\binaries\win32\7za.exe ENOENT
I've tried to understand why this happens, and knowing that this module is a wrapper of node-7z-forall (deprecated) on which everything worked instead, I tried to look inside node_modules and noticed that the
binaries
folder is missing.Fixed (apparently) by copying the
binaries
folder fromnode_modules/node-7z-forall
tonode_modules/node-7z-archive
...then everything works fine.I've tried the same thing on both WIN 10 and Linux (Amazon AWS LightSail VM, Amazon Linux 2 OS) and getting the same behavior.
The text was updated successfully, but these errors were encountered: