Error EACCES: permission denied
when running the (development) live-reload server on macOS with Docker Desktop + VirtIOFS
#5096
Labels
What is the problem?
When executing the target
make run
on macOS, with Docker Desktop and the new VirtIOfs file sharing enabled, then an errorEACCES: permission denied
is thrown by thenpm install
step (running inside the container).The error changes on each run, but is always located in a subdirectory of
node_modules
: it seems that the call fromnpm
tomkdir
in order to create these sub directories is having an unexpected behavior: the directory is created, with the correct permissions, but the syscall still fails at the end which results in npm failing to install dependencies.Short Term Fix
export USE_LOCAL_NODE=true
-jenkins.io/scripts/node
Line 3 in ac95b61
Long Term Fix
I intend to send a PR, but anyone interested in fixing this is welcome.
Expect some delays as I want to report this behavior to Docker Inc. to help them improve the VirtIOfs coverage.
But the main idea is to clean up:
node_modules
directory between the container and the host. It's only taking a toll on the performances, and complicates things too muchReally Long Term / Paradigm Change
That could be a great opportunity for anyone interested to check if https://dagger.io/ couldn't be a tool to stop writing an insane amount of makefile/shell/node code.
References
The text was updated successfully, but these errors were encountered: