diff options
Diffstat (limited to 'lib/utils/update-notifier.js')
-rw-r--r-- | lib/utils/update-notifier.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utils/update-notifier.js b/lib/utils/update-notifier.js index 2b45d54c8..44b6a5433 100644 --- a/lib/utils/update-notifier.js +++ b/lib/utils/update-notifier.js @@ -10,6 +10,7 @@ const { promisify } = require('util') const stat = promisify(require('fs').stat) const writeFile = promisify(require('fs').writeFile) const { resolve } = require('path') +const log = require('./log-shim.js') const isGlobalNpmUpdate = npm => { return npm.flatOptions.global && @@ -61,7 +62,7 @@ const updateNotifier = async (npm, spec = 'latest') => { // if they're currently using a prerelease, nudge to the next prerelease // otherwise, nudge to latest. - const useColor = npm.log.useColor() + const useColor = log.useColor() const mani = await pacote.manifest(`npm@${spec}`, { // always prefer latest, even if doing --tag=whatever on the cmd |