cache: ignore failures replacing package.json - #10940
orangemocha wants to merge 1 commit into
Conversation
|
I wonder if, instead of just ignoring this, that |
|
Alexis, could you rebase this against the latest |
|
@othiym23 last commit on As suggested by @iarna, submitted a PR to |
|
Hmm... I guess the changes @zkat has made to get the tests passing for |
writeFileAtomic is not atomic in Windows, it fails if the file is being accessed concurrently. Fixes: #7885 Fixes: #9696 PR-URL: #10940 Credit: @orangemocha
writeFileAtomic is not atomic in Windows, it fails if the file is being accessed concurrently. Fixes: #7885 Fixes: #9696 PR-URL: #10940 Credit: @orangemocha Reviewed-By: @othiym23
writeFileAtomic is not atomic in Windows, it fails if the file is being accessed concurrently. Fixes: #7885 Fixes: #9696 PR-URL: #10940 Credit: @orangemocha Reviewed-By: @othiym23
|
This was merged to 3.6.0 & 2.14.16! =) |
|
Awesome, thank you! |
As reported in #9696 ,
npm installfails frequently on slow Windows machines.This happens because npm uses
write-file-atomicto overwritepackage.jsonin the cache, and it is not possible to write atomically to a file in Windows as it is done in UNIX. To replace a file, it cannot be open at the same time, either for reading or for other calls towrite-file-atomic.Failures writing to
package.jsonare already ignored in another place. Not saving cache information here does not seem to be an issue, but can there be a reason why we might not want to do this? @othiym23Fixes: #7885
Fixes: #9696