From f497d51b503df38006775078f8a0c83790e233b4 Mon Sep 17 00:00:00 2001 From: David Brown Date: Tue, 9 Aug 2016 15:25:18 -0700 Subject: [PATCH] Resolves #29: be compatible with NPM v3 This much-simpler-than-expected compatibility fix tested out okay on both NPM v3.8.9 and NPM v2.5.1. No runtime check required. --- lib/npm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/npm.js b/lib/npm.js index d469cd2..89226e7 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -38,7 +38,7 @@ exports.install = function(url, working_dir, update, callback) { utils.scrub_auth_from_string(url) ); - npm.commands.install(working_dir, url, function (err, data) { + npm.commands.install(working_dir, [ url ], function (err, data) { // remove the npm listener npmout.removeListener('log', msgner);