diff options
author | Jordan Harband <ljharb@gmail.com> | 2021-02-13 01:27:56 +0300 |
---|---|---|
committer | nlf <quitlahok@gmail.com> | 2021-02-18 23:37:00 +0300 |
commit | 49c95375af49308e2db6ba28e91c65193754e091 (patch) | |
tree | b68977a13e72f886f0a670517c3123174eb2c79c /lib | |
parent | e3de7befb3a9e2fcb7aac5b740d09b3b7d99d724 (diff) |
fix: shrinkwrap in node v10.0
See https://github.com/npm/cli/pull/2654#discussion_r575549441
PR-URL: https://github.com/npm/cli/pull/2688
Credit: @ljharb
Close: #2688
Reviewed-by: @wraithgar
Diffstat (limited to 'lib')
-rw-r--r-- | lib/shrinkwrap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/shrinkwrap.js b/lib/shrinkwrap.js index 60e49f3c8..f1146206d 100644 --- a/lib/shrinkwrap.js +++ b/lib/shrinkwrap.js @@ -1,7 +1,7 @@ const { resolve, basename } = require('path') const util = require('util') const fs = require('fs') -const { unlink } = fs.promises || util.promisify(fs.unlink) +const { unlink } = fs.promises || { unlink: util.promisify(fs.unlink) } const Arborist = require('@npmcli/arborist') const log = require('npmlog') |