Skip to content

Do not stop process when EPEERINVALID error is raised #2087

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

Merged
merged 1 commit into from
Sep 30, 2016

Conversation

rosen-vladimirov
Copy link
Contributor

In many cases npm install command, that CLI calls, will raise EPEERINVALID error (on Linux and Mac OS X).
This error code indicates that some of the dependencies have peer dependencies that are not included in the project.
Npm 2 considers this case as error and raises EPEERINVALID error. However in npm 3 this case is treated as non-errornous case and instead of EPEERINVALID, only WARNINGIS are shown.
CLI uses npm 2 internally (as dependency), so whenever such case happens, it breaks its execution.
Until the dependency is updated, let's treat these errors as warnings and continue the execution. After we upgrade the dependency to npm 3 we'll have the same behavior.

@rosen-vladimirov rosen-vladimirov added this to the 2.4.0 milestone Sep 30, 2016
@rosen-vladimirov rosen-vladimirov self-assigned this Sep 30, 2016
In many cases `npm install` command, that CLI calls, will raise EPEERINVALID error (on Linux and Mac OS X).
This error code indicates that some of the dependencies have peer dependencies that are not included in the project.
Npm 2 considers this case as error and raises EPEERINVALID error. However in npm 3 this case is treated as non-errornous case and instead of EPEERINVALID, only WARNINGIS are shown.
CLI uses npm 2 internally (as dependency), so whenever such case happens, it breaks its execution.
Until the dependency is updated, let's treat these errors as warnings and continue the execution. After we upgrade the dependency to npm 3 we'll have the same behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants