-
Notifications
You must be signed in to change notification settings - Fork 40
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
npm Segmentation Fault #22
Comments
For the record npm works perfectly fine out of snap at this version. |
ooof, that's not healthy |
Kernel: Linux 5.10.74-1-LTS
The funny thing is, there isn't anything it is installing. Simply running |
Oh and amd64 (x86_64 arch) |
|
sorry, I think that's |
I'll give it a try |
Yeah works fine on 16. |
I do need 14 to work though because of a package that limits the engine to be v14. |
Does ldd absolutely know if npm is relying on libraries in these exact paths? I can't believe that, but if it's true it looks like it's relying on libc outside of the snap environment.
|
It's supposed to be relying on libraries in its own isolated environment, that's intended to be part of the magic of snaps. What you're looking at is not the libraries for |
Ah that makes sense |
Here's 14 |
The only reason I'm switching shells is because powershell doesn't mention the segmentation fault, it only outputs error code 139. |
Sorry, I'm not at all sure what's going on here. Maybe this is something best taken up with the Snap folks @ https://forum.snapcraft.io/? It sounds like an odd interaction with the distro you're using. Maybe Snap isn't setting up its environment properly. |
That makes sense |
Running commands like
npm install
causes a segmentation fault out of the box. This is how I installed the snap:This is the verbose logs:
Versions
NPM 6.14.15
NodeJS v14.18.1
The text was updated successfully, but these errors were encountered: