I recently started using vite to make my react apps as I grew tired of the excruciatingly long install times for create-react-app. However, as I looked online, I found different ways of making a vite app. On the official documentation, it says to use npm init vite@latest while other tutorials use npm init vite. Both require you to install different dependencies on your machine before you can run the commands. However, it appears that they both do essentially the same thing. Can anyone explain the difference between the 2 commands?
CodePudding user response:
The difference between the two, is, npm init vite@latest
will download the latest version - and npm init vite
will use create-vite
if you had it previously globally installed, or it will fetch the latest version. that's it. Read below