Commit 55263326 authored by nanahira's avatar nanahira

fix

parent 86069a7f
......@@ -88,7 +88,10 @@ async function tryInstallPackages(names: string[]) {
}
async function installPlugin(name: string, info: any) {
const version: string = info.$version || info.$install;
const version: string =
info.$version || typeof info.$install === 'string'
? info.$install
: undefined;
if (name.match(/^([\.\/~\\]|[A-Za-z]:[\/\\])/)) {
logger.info(`Plugin ${name} is a local plugin, skipping.`);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment