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

Improve error on a botched install #1259

Closed
gaearon opened this issue Dec 12, 2016 · 3 comments
Closed

Improve error on a botched install #1259

gaearon opened this issue Dec 12, 2016 · 3 comments

Comments

@gaearon
Copy link
Contributor

gaearon commented Dec 12, 2016

@kittens reported Yarn master produces a botched install with an unfriendly message like this:

(Some Google juice:)

create-react-app myapp
cd myapp
npm start

Failed to compile
Error in Unexpected token )
@ multi main

Normally I'd expect that a botched install just doesn't start so it's frustrating it starts but then produces a weird error. It would be great if we could figure out why this is happening and crash more reasonable. We might also want to find a way to surface unexpected errors like this one.

@gaearon
Copy link
Contributor Author

gaearon commented Feb 11, 2017

Seems like no one else is hitting this so far (or at least not reporting it), and I really don't know what caused this. Closing until we have more issues like this.

@gaearon gaearon closed this as completed Feb 11, 2017
@kamthamc
Copy link

kamthamc commented Feb 14, 2017

@gaearon I had same issue. I tried same steps and getting the multi main error.

create-react-app myapp
cd myapp
npm start

Failed to compile
@ multi main

screen shot 2017-02-13 at 5 43 32 pm

@gaearon
Copy link
Contributor Author

gaearon commented Feb 14, 2017

@kamthamc Yes, it was due to Babel accidentally releasing a buggy version. It should be fine now, just delete node_modules and run npm install again. See details in #1550.

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants