mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-07 23:08:39 -06:00
fix: plugin.options can be missing when runGenerator is directly called
fixes #2906
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user