Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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

wants to merge 2 commits into from

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
2 participants