Skip to content

Commit

Permalink
Resolves #29: be compatible with NPM v3
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
David Brown committed Aug 9, 2016
1 parent 523cf88 commit f497d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f497d51

Please sign in to comment.