Skip to content

Commit abb1379

Browse files
committed
fix: should skip installation for most test cases
1 parent d112944 commit abb1379

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/@vue/cli/lib/Creator.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ module.exports = class Creator extends EventEmitter {
201201
log(`📦 Installing additional dependencies...`)
202202
this.emit('creation', { event: 'deps-install' })
203203
log()
204-
await pm.install()
204+
if (!isTestOrDebug || process.env.VUE_CLI_TEST_DO_INSTALL_PLUGIN) {
205+
await pm.install()
206+
}
205207

206208
// run complete cbs if any (injected by generators)
207209
log(`⚓ Running completion hooks...`)

0 commit comments

Comments
 (0)