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

Could not locate the repository for starter-example.

Open helloEarth opened this issue 2 years ago • 8 comments

When i run: npx create-next-app@latest nextjs-dashboard --use-npm --example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example/"

It shows: 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.

But if i just run: npx create-next-app@latest nextjs-dashboard Everything is fine.

Node version: v17.2.0 (Same with v18.18.2) OS: MacOSX, M1 chip

I am using work network. But i can clone https://github.com/vercel/next-learn.git this project down. Dont know if this matters.

helloEarth avatar Nov 20 '23 14:11 helloEarth

@helloEarth thanks for the feedback! I was unable to reproduce this. Running the command in my terminal clones the repo as expected. Is this issue still happening for you?

StephDietz avatar Nov 27 '23 16:11 StephDietz

@helloEarth thanks for the feedback! I was unable to reproduce this. Running the command in my terminal clones the repo as expected. Is this issue still happening for you?

Yes, this issue is still happening.

helloEarth avatar Nov 28 '23 09:11 helloEarth

screenshot-20231128-173416

helloEarth avatar Nov 28 '23 09:11 helloEarth

Im also getting same issue Capture

nikola-golijanin avatar Dec 01 '23 08:12 nikola-golijanin

I ran into with this same issue

maik-emanoel avatar Dec 04 '23 14:12 maik-emanoel

After some tries, I was able to solve this problem. I had updated the Node version and I ended up forgetting to update npm version. Then I updated npm and my code worked.

Code to update npm version: npm install -g npm

maik-emanoel avatar Dec 04 '23 16:12 maik-emanoel

Hi altogther, unfortunately I experience the same problem. Win 10 Node 20.10.0, npm 10.2.4 Any sugestions? Thanks in advance

firtree-23 avatar Dec 05 '23 14:12 firtree-23

Same issue here using MacOS Sonoma 14.2.1 on M2 Mac. Node 20.10.0 npm 10.2.5

My workaround... npx create-next-app@latest nextjs-dashboard --use-npm Would you like to use TypeScript? … Yes Would you like to use ESLint? … Yes Would you like to use Tailwind CSS? … Yes Would you like to use src/ directory? … No Would you like to use App Router? (recommended) … Yes Would you like to customize the default import alias (@/*)? … No

Download the zip file from the "Code" button at https://github.com/vercel/next-learn Unzip the file Move the contents of next-learn-main/dashboard/starter-example/ to nextjs-dashboard/ (replace all when asked) cd nextjs-dashboard npm i npm run dev

Valdhor avatar Jan 10 '24 16:01 Valdhor

I am not able to reproduce this. Please open a new issue if you are still having trouble here. Thank you!

leerob avatar Jun 23 '24 22:06 leerob