Skip to content

Commit

Permalink
fix: plugin.options can be missing when runGenerator is directly called
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Nov 12, 2018
1 parent 077343b commit d1cd4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli/lib/invoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async function runGenerator (context, plugin, pkg = getPkg(context)) {
log()
const packageManager =
loadOptions().packageManager || (hasProjectYarn(context) ? 'yarn' : 'npm')
await installDeps(context, packageManager, plugin.options.registry)
await installDeps(context, packageManager, plugin.options && plugin.options.registry)
}

if (createCompleteCbs.length) {
Expand Down

0 comments on commit d1cd4aa

Please sign in to comment.