mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-23 04:58:56 -05:00
workflow: fix sync script
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ const getRemoteVersion = async (pkg) => {
|
||||
}
|
||||
let res
|
||||
try {
|
||||
res = await request(`http://registry.npmjs.org/${pkg}/latest`)
|
||||
res = await request(`http://registry.npmjs.org/${pkg}/latest`, { json: true })
|
||||
} catch (e) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user