diff options
Diffstat (limited to 'lib/utils/timers.js')
-rw-r--r-- | lib/utils/timers.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/utils/timers.js b/lib/utils/timers.js index c84bbba38..c215fe926 100644 --- a/lib/utils/timers.js +++ b/lib/utils/timers.js @@ -1,5 +1,5 @@ const EE = require('events') -const fs = require('@npmcli/fs') +const fs = require('fs') const log = require('./log-shim') // This is an event emiiter but on/off @@ -90,11 +90,7 @@ class Timers extends EE { return acc }, {}), } - fs.withOwnerSync( - this.file, - () => fs.writeFileSync(this.file, JSON.stringify(content) + '\n'), - { owner: 'inherit' } - ) + fs.writeFileSync(this.file, JSON.stringify(content) + '\n') } catch (e) { this.file = null log.warn('timing', `could not write timing file: ${e}`) |