-
Notifications
You must be signed in to change notification settings - Fork 123
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
OSXFS specific issue #2296
Comments
The same for me on linux machine. But sometimes it works. |
Same kind of error here working with serverless (1.25.0).
Minimal (non-working) example using docker: mkdir docker-issue-2296
cd docker-issue-2296
docker run -it --rm -v $(PWD):/cwd -w /cwd node:9.4.0-alpine npm init Accepting all default values, resulting in following {
"name": "cwd",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
} Then install fails:
The
Uploading:
|
Interestingly enough, it works with a different docker image (using node v8.9.4):
EDIT: Talked to quickly; it now fails! |
I'm getting the same thing using d3 with docker for mac:
Sometimes it fails on a different file:
|
Same happens with
Docker info:
|
try to use "npm install --unsafe-perm" |
+1 here. npm install --unsafe-perm didn't help. :consistent didn't help. |
any updates on this issue? |
I have a workaround for this: as well as the volume mount of the local project, additionally mount a named volume to the node_modules folder, so it isn't shared with the host (it isn't really desirable to share node_modules between the OS and the container anyway, since the OS is different). E.g. in my docker-compose file I have something like:
Should also help with performance. |
@tomwidmer When I tried this, I saw some weird behaviors when |
@gsong I mostly just operate in the container - I use I'd prefer a fix to the underlying problem of course. |
+1 Same issue
|
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
@docker-for-desktop-robot WTH? |
Didn't understand what are those Mac users are complaining about. Got a MacBook, now I have this issue too :( And I'm using yarn, not npm. |
I am also running into the issue while installing d3, as @pcambra said. Any workaround? |
Workaround for me was to mount a NPM volume that is container-only. Install NPM there. Then copy the directory over to its final location within another volume that is container-only. Basically: dont sync it. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
HOST
FILES
package.json
for reproduction:Dockerfile
for reproduction:REPRO
Repro steps host:
Repro steps inside container:
OUTCOME
EXPECTED
Cucumber gets installed.
NOTES
Also applies to
1.3.3
,2.1.0
,2.2.0
,2.3.0
(did not test lower than this).Version
3.1.0
does not seem to have this issue.The text was updated successfully, but these errors were encountered: