Test-Driven React 2: Starting the project (page 48)

@TrevorBurnham

I can’t even get the initial React project off the ground. The provided command;

npm create vite@4.4.9 test-driven-carousel -- --template react-ts

comes back with the error;

npm error code ETARGET
npm error notarget No matching version found for create-vite@4.4.9.
npm error notarget In most cases you or one of your dependencies are requesting
npm error notarget a package version that doesn't exist.

Is there an alternative version I should use that will maintain compatibility with everything else that follows?

Thanks

Hmm, that’s strange. Try using the last available v4:

npm create vite@4 test-driven-carousel -- --template react-ts

Let me know which version that installs for you.

1 Like

Thanks Trevor. That installed Vite 4.4.5. I’ll continue with the setup and see how things go.

Pete