From ff06a31090978840935abb9bf7fd55e75a8a2047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Fri, 1 Sep 2017 14:26:31 +0100 Subject: [PATCH] fix(main): default --prefix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index bb070ce..2db53a1 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ const lifecycle = require('npm-lifecycle') module.exports = main function main (opts) { - let prefix = path.resolve(opts.prefix) + let prefix = path.resolve(opts.prefix || '.') const startTime = Date.now() const nodeModulesPath = path.join(prefix, 'node_modules')