diff --git a/lib/commands/plugin.js b/lib/commands/plugin.js index 7ccf3870..edfb60b5 100644 --- a/lib/commands/plugin.js +++ b/lib/commands/plugin.js @@ -47,7 +47,7 @@ function install(name) { // install dependencies var plugin = require(path.relative(__dirname, newname)); - if (plugin.deps.length === 0) return; + if (plugin.deps === undefined || plugin.deps.length === 0) return; var cmd = 'npm install --save ' + plugin.deps.join(' '); log.debug(cmd);