From c30fd35c21c8df95de7ddcbb1332b94aae64a964 Mon Sep 17 00:00:00 2001 From: Fangshi He Date: Wed, 15 Jun 2016 17:02:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0node=5Fmodules=E6=9F=A5?= =?UTF-8?q?=E6=89=BE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/yog2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/yog2 b/bin/yog2 index 9256ac4..79da37a 100755 --- a/bin/yog2 +++ b/bin/yog2 @@ -42,7 +42,7 @@ cli.launch({ fis = require(env.modulePath); } fis.IS_FIS3 = true; - fis.set('system.localNPMFolder', path.join(env.cwd, 'node_modules/yog2')); - fis.set('system.globalNPMFolder', path.dirname(__dirname)); + fis.require.paths.unshift(path.join(env.cwd, 'node_modules')); + fis.require.paths.push(path.join(path.dirname(__dirname), 'node_modules')); fis.cli.run(argv, env); });