Skip to content

Commit 5b234a0

Browse files
committed
fix: shrinkwrap in node v10.0
See #2654 (comment)
1 parent 7c66009 commit 5b234a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shrinkwrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { resolve, basename } = require('path')
22
const util = require('util')
33
const fs = require('fs')
4-
const { unlink } = fs.promises || util.promisify(fs.unlink)
4+
const { unlink } = fs.promises || { unlink: util.promisify(fs.unlink) }
55
const Arborist = require('@npmcli/arborist')
66
const log = require('npmlog')
77

0 commit comments

Comments
 (0)