-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[BUG] fallback behaviour when hard links aren't supported #5951
Comments
What does (also, using a patched node likely means node can't really support you, but i'll let them respond to an issue there) |
I don't know, but the error looks like it's coming from npm trying to create a hardlink in the .npm/cacache thing. I filed with node, they said it's npm. |
Can you link to that? because in your OP you didn't even compile node with npm. |
I'm having a similar issue with AKS when trying to run (@ljharb this looks like the referenced issue btw) nodejs/node#45818 I'm looking for a way to avoid using hardlinks during an install because this is blocking me from installing anything. details about the npm install issueHere's the log output on my end (nodered is running npm install, but the same thing happens when you run
The crucial line being Confirmed a similar error when trying to hardlink the files myself:
|
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Running
make test-only
for nodejs, npm fails with EPERM, apparently from trying to create a hard link, but the file system has no support for hard links.Log file: https://gist.github.com/jessicah/32af57e465f6f4a340f79117863f756e
Expected Behavior
Fallback behaviour to use symlinks for filesystems without hard links. Not sure whether this should be here in npm, or if a workaround should be done in nodejs itself.
Steps To Reproduce
For building nodejs on Haiku:
pkgman install devel:libcares devel:libexecinfo devel:libnghttp2 devel:libssl devel:libuv devel:libbrotli cmd:ninja ./configure --with-intl=none --dest-os=haiku --without-npm --verbose --prefix=~/config/non-packaged --shared-cares --shared-libuv --shared-nghttp2 --shared-openssl --shared-zlib --shared-brotli make make test-only
Example of
ln
failing:ln foo bar # ln: failed to create hard link 'bar' => 'foo': Operation not supported (EPERM)
Environment
The text was updated successfully, but these errors were encountered: