next-learn
next-learn copied to clipboard
Could not locate repository
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
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
If you are using the VPN, close it!
I had the same issue, and it disappeared after I closed vpn. It's really weird.
I encountered the identical problem, which I mitigated by upgrading Node.js to a newer version using Node Version Manager
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.