-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Operation not supported error when using NFS mount #562
Comments
Possibly related. When we run npm install on a directory mounted with nfs we get this error:
|
Any possibilities to get this fixed @TooTallNate? Same issue over here:
|
any way around this? running into same "problems". |
+1 |
👍 Just ran into this trying to |
If you get that flock error, just run There is no way around that |
+1 |
for all you vagrant users out there - I used https://github.com/gael-ian/vagrant-bindfs to fix the errors when trying to |
+1 |
@pkyeck Thanks, it fixed perfectly the problem |
+1 Thanks @pkyeck! Vagrantfile:
Host:
No more node-gyp errors when doing |
I don't get the flock issue, but I do get the cp issue:
The vagrant (or equivalently HGFS) workarounds are cute but insufficient: I've experienced brutal (> 10x) build performance penalties when building on such filesystems. Why is the |
@awreece Try |
@bnoordhuis Sorry for the latency on the reply; unfortunately I was unable to run your command successfully. I think I need to run the I will give you this, I tested both parts of the
|
Does |
I'd prefer not to dig into understanding the |
I'm guessing npm doesn't pass on the environment to child processes.
Does |
For modern versions of nodejs (v5.1.1) and npm (v3.3.12), neither work:
As before, I'm not conviced the
Running
For kicks, I tried just using
Interestingly, I forced the use of an old node (v0.10.25) and npm (1.3.10) and the package installed successfully:
With
These versions are the default in the ubuntu distro I'm testing with, but seem ancient:
For reference, the modern versions I tested with are:
|
hey @awreece they most recent version of the v5 release line is v5.9.1, would you be able to update and see if that fixes anything? |
@thealphanerd I tried on node v5.9.1 and got the same failure. For reference, I don't believe the issue is related to node at; the problem appears to be that |
@awreece Keep in mind you probably need to drop |
@awreece I've removed my response... thanks for updating your comment |
@bnoordhuis D'oh, you're right that I forgot to drop the
Between this additional information and the |
Okay, I think the conclusion has to be that npm doesn't pass on the environment to child processes. There's probably a switch for it but I don't know what it is. Maybe try filing an issue over at https://github.com/npm/npm/issues? |
When I run
|
I manually patched the makefile generator to respect the value from the environment for
Re ran
|
@pkyeck Thank u. bindfs fixed my issue. |
Any update on this? |
Any update on this? It seems the current state of the ticket:
Is there additional testing that needs to happen? |
For others dealing with packages that have this issue (I ran into it when trying to install the
I believe this works because installing the package globally puts it in a non-shared location where this issue doesn't occur. Note that |
You can mount your NFS share with the Example (/etc/fstab): |
@jleroy : thanks for the hint, helped me out (in a different project, but similar problem) :) 👍 |
+1 |
+1 |
Probably needs to be resolved in https://github.com/refack/GYP rather than here, @refack do you agree? Can we close this with the suggestion that someone is welcome to open a PR there and have it downstreamed here eventually? |
For the Vagrant folks, this is another solution: |
To summarize:
I'm closing this but whoever feels dropping diff --git a/gyp/pylib/gyp/generator/make.py b/gyp/pylib/gyp/generator/make.py
index 26cf88c..f40a80a 100644
--- a/gyp/pylib/gyp/generator/make.py
+++ b/gyp/pylib/gyp/generator/make.py
@@ -2044,7 +2044,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
srcdir_prefix = '$(srcdir)/'
flock_command= 'flock'
- copy_archive_arguments = '-af'
+ copy_archive_arguments = '-PRf'
makedep_arguments = '-MMD'
header_params = {
'default_target': default_target, |
Sad this was closed with no followup or fix.
|
This is not a nodejs issue, but more likely the environment used. |
I get an error due to the use of
flock
in theExecFlock
function within gyp/pylib/gyp/mac_tool.pyI replaced
ExecFlock
with this recipe and it resolved the error. Unfortunately, the code is lgpl.v2.The text was updated successfully, but these errors were encountered: