Search⌘ K

How to Set Up Svelte Locally

Learn how to set up Svelte from scratch on your local machine.

How to set up the project

In order to set up a brand new Svelte project in our local environment, we're going to use the create-vite command. To create a new Svelte project, type the following into your terminal:

YAML
npm create vite@latest svelte-students –– ––template svelte

This will create a new folder called svelte-students ...