next-learn icon indicating copy to clipboard operation
next-learn copied to clipboard

Could not locate repository

Open fdterr opened this issue 1 year ago • 4 comments

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

fdterr avatar Jul 02 '24 02:07 fdterr

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

0xTemane avatar Jul 02 '24 07:07 0xTemane

If you are using the VPN, close it!

granite83 avatar Jul 03 '24 15:07 granite83

I had the same issue, and it disappeared after I closed vpn. It's really weird.

riverO0o avatar Jul 12 '24 07:07 riverO0o

I encountered the identical problem, which I mitigated by upgrading Node.js to a newer version using Node Version Manager

martinezIsaac-TW avatar Oct 22 '24 14:10 martinezIsaac-TW

Failing because you are behind a VPN seems to be a common issue. I would suggest to add a note next to that command. It is frustrating to get blocked on the tutorial right at the step 1.

vmrocha avatar Jan 17 '25 20:01 vmrocha