From e13e4c8da92b51661c6af23b4272fc00cbd76089 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Mon, 8 Jun 2015 17:26:37 -0700 Subject: install: don't run lifecycle for `install --link` Fixes: #7198 PR-URL: https://github.com/npm/npm/pull/8501 --- lib/link.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/link.js b/lib/link.js index e4e47d53e..cb44a6be7 100644 --- a/lib/link.js +++ b/lib/link.js @@ -114,14 +114,13 @@ function linkInstall (pkgs, cb) { if (npm.config.get('dry-run')) return resultPrinter(pkg, pp, target, rp, cb) chain( [ - [npm.commands, 'unbuild', [target]], [function (cb) { log.verbose('link', 'symlinking %s to %s', pp, target) cb() }], [symlink, pp, target], - // do run lifecycle scripts - full build here. - rp && [build, [target]], + // do not run any scripts + rp && [build, [target], npm.config.get('global'), build._noLC, true], [resultPrinter, pkg, pp, target, rp ] ], cb -- cgit v1.2.3