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

Handle npm install error gracefully #1172

Closed
wants to merge 4 commits into from
Closed

Conversation

LinusBorg
Copy link
Contributor

The problem

See #1168 - it ssems to be fixed by #1170 already, but imrpoving the error handling in case something breaks might still be a good idea.

Thougths?

What does this PR add/change?

When the user has chosen to let the template automatically install dependencies, and that call to npm install fails, We now display a usefull error message with instructions on how to proceed.

bildschirmfoto 2017-12-14 um 12 57 04

Is that a perfect solution?

Not really, but it helps to proceed even if autoInstall fails.

If someone for whom this process fails would be willing to investigate, that would be much apprechiated. Since I can't reproduce the error from #1168, I don't know how to debug this.

To test this PR:

vue init webpack#fix_installerror_1168 

Thanks!

@LinusBorg
Copy link
Contributor Author

Closing this as I think we don't need it after all.

@LinusBorg LinusBorg closed this Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant