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

Infinite npm i loop fix #703

Merged
merged 1 commit into from
Oct 8, 2017
Merged

Infinite npm i loop fix #703

merged 1 commit into from
Oct 8, 2017

Conversation

matteofigus
Copy link
Member

@matteofigus matteofigus commented Oct 8, 2017

Fixes a bug introduced on #686

Specifically, when using npm as process (as opposite to programmatically as previously), running an npm i in a specific folder doesn't guarantee the module will be performed in the given folder.
In fact, if previous node_modules parents will be found, those will be picked instead. By using the --prefix param instead, that should be ok.

More info about how npm tries to guess the prefix if not specified explicitly: https://docs.npmjs.com/files/folders#more-information

@nickbalestra nickbalestra merged commit fdedb45 into master Oct 8, 2017
@matteofigus matteofigus deleted the npmi-fix branch October 8, 2017 13:17
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