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

Connectivity Issue with the npx create-next-app --example command. #39181

Closed
chof64 opened this issue Jul 30, 2022 · 6 comments
Closed

Connectivity Issue with the npx create-next-app --example command. #39181

chof64 opened this issue Jul 30, 2022 · 6 comments

Comments

@chof64
Copy link

chof64 commented Jul 30, 2022

Hello, I am having the same issue, however, on mine, the --example points to https://github.com/vercel/next-learn/tree/master/basics/learn-starter as per the tutorial (https://nextjs.org/learn/basics/create-nextjs-app/setup).
Screenshot from 2022-07-30 15-32-31

But what I noticed is that all the files from the GitHub repo seem to be downloaded. However, dependencies are not installed.

So with the assumption of all the files are fully downloaded, I just manually run npm install to install dependencies. And proceeded to run npm run dev` to start the dev server. And it worked!
Screenshot from 2022-07-30 15-41-59

It seems that there's some bug in the script that even though it already downloaded the repo, returns an error even though the download is complete. And with this error, the rest of the script (dependency installation) is not run.

Originally posted by @chof64 in #24802 (comment)

@IntroJoul
Copy link

image

The bottom link is to a readme page with the recommendation to use

npm init next-app nextjs-blog

instead

@jeferson-sb
Copy link
Contributor

Related to #39321

@balazsorban44
Copy link
Member

@chof64 could you verify which Node.js version you are on? As pointed out above, we are tracking an upstream issue in #39321 that might be the same issue that you have.

@stuartrapop
Copy link

I am having the same or similar issue

npx create-next-app@latest --example with-jest first-test

returns


? Could not download "with-jest" because of a connectivity issue between your machine and GitHub.
✔ Could not download "with-jest" because of a connectivity issue between your machine and GitHub.
Do you want to use the default template instead? … yes
The directory with-jest-app contains files that could conflict:

node version : v18.7.0

@balazsorban44
Copy link
Member

balazsorban44 commented Sep 2, 2022

Closing in favor of #39321 as this is very likely the same issue. I opened a PR #40182 to fix this. If you have any comments, please add it to #39321

@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants