Skip to content

Commit 76c1736

Browse files
committed
fix: correctly catch errors of offline install
1 parent 9b073f8 commit 76c1736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ class PackageManager {
243243
async install () {
244244
if (process.env.VUE_CLI_TEST) {
245245
try {
246-
return this.runCommand([PACKAGE_MANAGER_CONFIG[this.bin].install, '--offline'])
246+
await this.runCommand([PACKAGE_MANAGER_CONFIG[this.bin].install, '--offline'])
247247
} catch (e) {
248-
this.runCommand([PACKAGE_MANAGER_CONFIG[this.bin].install])
248+
await this.runCommand([PACKAGE_MANAGER_CONFIG[this.bin].install])
249249
}
250250
}
251251

0 commit comments

Comments
 (0)