how can i setup sveletkit version 1.0.0
I’m just another user but here’s what I would do:
- start a blank repl
- go to the shell view
- type
npm init svelte@latest
- it will tell you npm is not installed. choose
nodejs-16...
- let it do it’s magic
- hit y to proceed
- create project in current directory ( leave blank)
- it says directory not empty, continue - choose Y
- choose which template you want ( I chose demo app )
- choose which JS ( I chose JSDoc )
- choose if use ESLInt ( I chose y )
- choose prettier, etc choices
- now you are back at the console - type
npm install
- after installing find the file
.replit
and open it - change this line from
cowsay Configure me!
tonpm run dev -- --host
- make sure that saves then click the big “run” button at the top
- bam! it’s working!
Here is the Repl I created using the steps I did above :
https://replit.com/@triptych/sveltekit-10-test?v=1
BTW I did the same thing to get an Astro instance running in a few seconds https://replit.com/@triptych/Astro-Latest?v=1
the only difference was using npm init astro@latest
and I had to create a directory ‘u’ and in the .replit file add a cd ./u
before the run command.
2 Likes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.