We have regular issues that the cache of npm is broken and this results in failed builds. Because of that we already used npm ci in the past to actually skip the cache. We then still had the issue with the media manager. So the logical consequence is to completely remove the cache for these folders. I left the ci parameter for npm in, since that validates the package.json against the package.lock.
Thanks!