Skip to content

Commit 52f5005

Browse files
Mlocik97benmccann
Mlocik97
andauthored
[docs] update port in "Svelte for new developers" blog. (#7697)
Co-authored-by: Ben McCann <[email protected]>
1 parent 791533e commit 52f5005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/content/blog/2019-04-16-svelte-for-new-developers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ We're going to use the [Svelte + Vite](https://github.com/vitejs/vite/tree/main/
6161
On the command line, navigate to where you want to create a new project, then type the following lines (you can paste the whole lot, but you'll develop better muscle memory if you get into the habit of writing each line out one at a time then running it):
6262

6363
```bash
64-
npm init vite my-svelte-project -- --template svelte
64+
npm create vite@latest my-svelte-project -- --template svelte
6565
cd my-svelte-project
6666
npm install
6767
```
@@ -78,7 +78,7 @@ npm run dev
7878

7979
Running the `dev` script starts a program called [Vite](https://vitejs.dev/). Vite's job is to take your application's source files, pass them to other programs (including Svelte, in our case) and convert them into the code that will actually run when you open the application in a browser.
8080

81-
Speaking of which, open a browser and navigate to http://localhost:3000. This is your application running on a local *web server* (hence 'localhost') on port 3000.
81+
Speaking of which, open a browser and navigate to http://localhost:5173. This is your application running on a local *web server* (hence 'localhost') on port 5173.
8282

8383
Try changing `src/App.svelte` and saving it. The application will update with your changes.
8484

0 commit comments

Comments
 (0)