$ npm create vite@latext projettodos npm ERR! code ETARGET npm ERR! notarget No matching…
- User
$ npm create vite@latext projettodos npm ERR! code ETARGET npm ERR! notarget No matching version found for create-vite@latext. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Sebastien\AppData\Local\npm-cache_logs\2024-03-18T08_09_49_721Z-debug-0.log
- Assistant
It appears there's a typo in the command you've tried to execute, specifically with the word "latext" which should be "latest". Moreover, the proper format for creating a new project with Vite using npm (as of my last update in 2023) doesn't directly use
@latestin the create command. Here's how you can do it correctly:- If you want to specify that you wish to use the latest version of the Vite template:
You don't need to specify
@latestwhen usingnpm createas it will by default fetch the latest version. The correct command to scaffold a new project with Vite is:npm create vite@latest my-project-nameReplace
my-project-namewith the desired name for your project, such asprojecttodosin your case:npm create vite@latest projecttodos