Skip to content

Commit 5b38fa0

Browse files
committed
fix: fix version checking on fresh install
1 parent 0986acb commit 5b38fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli/lib/util/getVersions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = async function getVersions () {
1717
})
1818
}
1919

20-
const { latestVersion, lastChecked } = loadOptions()
20+
const { latestVersion = local, lastChecked = 0 } = loadOptions()
2121
const cached = latestVersion
2222
const daysPassed = (Date.now() - lastChecked) / (60 * 60 * 1000 * 24)
2323

0 commit comments

Comments
 (0)