diff --git a/src/plugins/packages/index.js b/src/plugins/packages/index.js index f6d5ed6e..55825744 100644 --- a/src/plugins/packages/index.js +++ b/src/plugins/packages/index.js @@ -146,7 +146,11 @@ async function outdated(cacheTimeout = TIME_TO_LIVE) { // Check if the configuration file exists if (!fs.existsSync(packagesConfig)) { - log.warn("There are no packages installed."); + // CLI calls outdated with zero TTL, so we can print the warning there + if (!cacheTimeout) { + log.warn("There are no packages installed."); + } + return false; }