Skip to content

Commit d1cd4aa

Browse files
committed
fix: plugin.options can be missing when runGenerator is directly called
fixes #2906
1 parent 077343b commit d1cd4aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async function runGenerator (context, plugin, pkg = getPkg(context)) {
139139
log()
140140
const packageManager =
141141
loadOptions().packageManager || (hasProjectYarn(context) ? 'yarn' : 'npm')
142-
await installDeps(context, packageManager, plugin.options.registry)
142+
await installDeps(context, packageManager, plugin.options && plugin.options.registry)
143143
}
144144

145145
if (createCompleteCbs.length) {

0 commit comments

Comments
 (0)