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

Gracefully handle npm install error gracefully (close #1168) #1171

Closed
wants to merge 4 commits into from

Conversation

LinusBorg
Copy link
Contributor

The problem

See #1168

what does this PR do

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 

I'm mentioning some folks who have previously reported this error with the request to test this workaround/solution on their systems:

Thanks!

@LinusBorg LinusBorg changed the title Gandle npm install error gracefully (close #1168) Gracefully handle npm install error gracefully (close #1168) Dec 14, 2017
@LinusBorg
Copy link
Contributor Author

Damn, it seem #1170 might fix the underlying reason, and it was easy so find. I will close this PR, and push another one rebased on that fix.

@LinusBorg LinusBorg closed this Dec 14, 2017
@LinusBorg LinusBorg deleted the fix_installerror_1168 branch December 14, 2017 12:09
This pull request was closed.
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.

1 participant