We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1331ee commit 9f0bf08Copy full SHA for 9f0bf08
packages/@vue/cli/lib/util/getVersions.js
@@ -18,7 +18,8 @@ module.exports = async function getVersions () {
18
const lastChecked = (await fs.stat(fsCachePath)).mtimeMs
19
const daysPassed = (Date.now() - lastChecked) / (60 * 60 * 1000 * 24)
20
if (daysPassed > 7) {
21
- await getAndCacheLatestVersion(current)
+ const cachedCurrent = await fs.readFile(fsCachePath, 'utf-8')
22
+ await getAndCacheLatestVersion(cachedCurrent)
23
}
24
latest = await fs.readFile(fsCachePath, 'utf-8')
25
} else {
0 commit comments