-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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] lchown
error when accessing installation lock file when running multiple installations in parallel.
#496
[BUG] lchown
error when accessing installation lock file when running multiple installations in parallel.
#496
Comments
lchown
error when accessing installation lock file when running multiple installations in parallel.
Also occurs locally on Linux with the same repro steps, eg
|
Seems to happen less when I switch to node 11.0.0 + npm 6.7.0. |
Node 11.0.0 is a really strange version as node 11 is EOL since a while. Maybe try the current LTS 12.13.1? Or it's maybe the older NPM version bundled with node 11 which avoids this. |
Yeah, I was just travelling backward through the versions I have installed until I found a non-problematic version. The older npm version is very likely the variable. |
@sandersn maybe perform a manual binary search through versions? 😛 |
Experiencing this bug when using Lerna consistently, which is unfortunately causing issues in our build process.
This is when using the |
I can confirm this is happening to me as well with node v13.2.0 and npm 6.13.4. Anyone has a temporary fix for this? As it's blocking some of our deployments. :( |
@midudev temp mitigation is to not run |
Thanks @SimonSchick. Yes... Using no concurrency at all seems to fix the problem but the time needed for installing packages is vastly increased. :( I wonder if the npm team is aware of this problem as this was working fine previously. Of if this is a problem caused because some inner changes on node. |
Hi, we have the same issue. Temporary fix is to downgrade to I have tested almost every version from |
We're experiencing the same issue for |
We can get more information about the lockfile with |
After some debugging, I found the issue around https://github.com/npm/cli/blob/latest/lib/utils/correct-mkdir.js#L31. If |
Some files might be deleted during chownr. This commit ignore ENOENT errors to tolerate such cases to mimic 'chown -R'. Fixes npm/cli#496
@isaacs Please let me know if raymondfeng/chownr@e4c7b59 is the right place to fix this issue. If so, I'll try to add some tests and submit a PR. |
@raymondfeng That looks like a reasonable change. Yes, please do send a PR to chownr. |
Some files might be deleted during chownr. This commit ignore ENOENT errors to tolerate such cases to mimic 'chown -R'. Fixes npm/cli#496
Some files might be deleted during chownr. This commit ignore ENOENT errors to tolerate such cases to mimic 'chown -R'. Fixes npm/cli#496
Some files might be deleted during chownr. This commit ignore ENOENT errors to tolerate such cases to mimic 'chown -R'. Fixes npm/cli#496
What / Why
When
Where
How
Current Behavior
lchown
npm lock files (not package-lokc.json).Steps to Reproduce
where
section.npm install
npm test node
Expected Behavior
Who
References
The text was updated successfully, but these errors were encountered: