Unhandled rejection Error: Unknown system error -117

On our CI, we randomly see the below errors during npm install

Error executing command: npm install
Unhandled rejection Error: Unknown system error -117: Unknown system error -117, mkdir '/root/.npm/_cacache/content-v2/sha512/89/56'
Unhandled rejection Error: Unknown system error -117: Unknown system error -117, mkdir '/root/.npm/_cacache/content-v2/sha512/92/5a'
Unhandled rejection Error: Unknown system error -117: Unknown system error -117, mkdir '/root/.npm/_cacache/content-v2/sha512/6c/ad'
Unhandled rejection Error: Unknown system error -117: Unknown system error -117, mkdir '/root/.npm/_cacache/content-v2/sha512/bf/49'
Unhandled rejection Error: Unknown system error -117: Unknown system error -117, mkdir '/root/.npm/_cacache/content-v2/sha512/92/5a'
Unhandled rejection Error: Unknown system error -117: Unknown system error -117, mkdir '/root/.npm/_cacache/content-v2/sha512/72/24'
Unhandled rejection Error: Unknown system error -117: Unknown system error -117, mkdir '/root/.npm/_cacache/content-v2/sha512/7c/13'
Unhandled rejection Error: Unknown system error -117: Unknown system error -117, mkdir '/root/.npm/_cacache/content-v2/sha512/87/67'
Unhandled rejection Error: Unknown system error -117: Unknown system error -117, mkdir '/root/.npm/_cacache/content-v2/sha512/72/24'
Unhandled rejection Error: Unknown system error -117: Unknown system error -117, mkdir '/root/.npm/_cacache/content-v2/sha512/87/67'
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-08-02T23_48_12_008Z-debug.log

Any idea how this can be resolved? What is this -117 error code, I looked up on the internet and couldn’t find anything!!

I do not recognise the -117, but my first question is are you using latest npm? There have been a number of cache related fixes recently.

Not really sure the exact version, but in our Dockerfile we are installing node version 10.15.1

How are those code numbers created? may be finding what this -117 is about could help fixing this issue?