Skip to content

enable download when npm version 3 or greater is detected#56

Open
bruceeolson wants to merge 2 commits intorxaviers:masterfrom
bruceeolson:master
Open

enable download when npm version 3 or greater is detected#56
bruceeolson wants to merge 2 commits intorxaviers:masterfrom
bruceeolson:master

Conversation

@bruceeolson
Copy link

install.js checks the npm version as follows.

var npmv = child_process.execSync('npm -v').toString('utf8');
isNpm3 = (npmv.split('.')[0] == '3');

If isNpm3 is false then install aborts in some cases that it should not. For example, when npm version is greater than 3.

In this PR the logic was modified so that isNpm3 is true for 3 or greater.

isNpm3 = parseInt(npmv.split('.')[0], 10) >= 3;

@rxaviers
Copy link
Owner

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants