-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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 message when using create-next-app #19588
Comments
Just tried to reproduce this but the example was correctly downloaded 🤔 Maybe GitHub was down at the time? |
I see that if the url failed it will just print this error message. Can it use the caught error to print a more descriptive error instead of ignoring the exception being caught? |
Definitely! Feel free to send a PR 👍 |
Hello @timneutkens I wanted to solve this issue. I am new to open source, but really wanted to know the community and help the project grow. So can you guide me with the issue and what behavior you want and you are not getting. |
hello, I can easily see the same error when purposely disconnect from internet. I can help enrich the error message to mention internet connection in
Can I work on it with a PR? |
Fixes [issue #19588](#19588) Here's a screenshot of the error message: ![image](https://user-images.githubusercontent.com/30517208/124733436-d1babd80-df31-11eb-96e4-513505ba07a0.png)
Fixes [issue vercel#19588](vercel#19588) Here's a screenshot of the error message: ![image](https://user-images.githubusercontent.com/30517208/124733436-d1babd80-df31-11eb-96e4-513505ba07a0.png)
For anyone who might encounter this in the future - I had this happen to me tonight and it turned out to be because I was using an older version of node.js than was supported by the CLI (I was using 10.something). Worth adding to the existing list of reasons? |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
Running
npx create-next-app --example with-mongodb with-mongodb
produces the error:"Could not locate an example named "with-mongodb". Please check your spelling and try again."
Even though the example is here:
https://github.com/vercel/next.js/tree/canary/examples/with-mongodb
To Reproduce
^
Expected behavior
Create example
Screenshots
If applicable, add screenshots to help explain your problem.
System information
The text was updated successfully, but these errors were encountered: