Hi Rich,
thanks for your feedback! We have no anti-virus or something running on these servers. I saw that suggestion (to disable it) also when researching in the past. We are using Atlassian Bamboo as build server and we have activated that it cleans up the directory after every build so there is no node_modules folder in the working directory.
Regarding your question the error appears sporadically. There are weeks where it doesn't appear in a single build and other weeks where it appears in every second build. We are tracking this issue now for a year and it disappears sometimes and appears again later. Unfortunately we didn't find any relation there.
Good point, I understand we could also experience that issue with npmjs.org when we use it for a while. I already tried running npm cache clean --force
before starting to install the npm packages and also tried deleting the npm cache directory C:\Windows\System32\config\systemprofile\AppData\Roaming\npm-cache
. It did not help... Do you have experience how I could make sure to delete the cache before installing npm packages or how to use a dedicated directory for the cache to make sure there is no link/access issue?
Thanks in advance.
Jana