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

Could not locate repository #781

Open
fdterr opened this issue Jul 2, 2024 · 2 comments
Open

Could not locate repository #781

fdterr opened this issue Jul 2, 2024 · 2 comments

Comments

@fdterr
Copy link

fdterr commented Jul 2, 2024

Trying to follow the tutorial here:

https://nextjs.org/learn/basics/create-nextjs-app/setup

I can't get past the first step "Create a Next.js app".

Tried running the following command:
npx create-next-app@latest nextjs-dashboard --example https://github.com/vercel/next-learn/tree/main/dashboard/starter-example --use-pnpm

I get the following error:
Could not locate the repository for "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example". Please check that the repository exists and try again.

This has nothing to with rate limits, as running curl -I https://api.github.com/users/octocat returns headers of

x-ratelimit-limit: 60
x-ratelimit-remaining: 59
@ImTemane
Copy link

ImTemane commented Jul 2, 2024

Hi fdterr,

Do you have installed PNPM , because its important : npm install -g pnpm

Then you can running this command : npx create-next-app@latest nextjs-dashboard --example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example" --use-pnpm

If you have some problems with this command, try to fork this repository : https://github.com/vercel/next-learn/

Then you can execute this command : npx create-next-app@latest nextjs-dashboard --example URL_OF_THE_FORKED_REPO --use-pnpm

normally, URL_OF_THE_FORKED_REPO is https://github.com/fdterr/next-learn/tree/main/dashboard/starter-example,
The "/tree/main/dashboard/starter-example" after the repo-url is VERY IMPORTANT

With smile,

  • ImTemane
@granite83
Copy link

If you are using the VPN, close it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants