vercel / next-learn

Learn Next.js Starter Code
https://next-learn-dashboard.vercel.sh/
MIT License
3.42k stars 1.8k forks source link

Could not locate repository #781

Open fdterr opened 5 days ago

fdterr commented 5 days ago

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 commented 5 days ago

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,

granite83 commented 4 days ago

If you are using the VPN, close it!