Reputation: 11
I am very new to programming and I have chosen to learn sveltekit. I am following this YouTube tutorial however he lost me when my skeleton project was not working!
Here is the output that I received in the terminal `$ npm run dev
[email protected] dev /home/runner/svelte-chat/client svelte-kit dev
file:///home/runner/svelte-chat/client/node_modules/@sveltejs/kit/dist/cli.js:861 https = https || !!vite_config.server?.https; ^
SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: svelte-kit dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/runner/.npm/_logs/2021-11-30T00_11_38_289Z-debug.log `
Any help at all is appreciated as I am a total beginner. I am using a MacBook Pro 13” running MacOS Monterey.
Upvotes: 0
Views: 1524
Reputation: 46
@SvelteNewbie.
Please take time to properly display the code and the error messages in your post.
The solution to your problem is to simply update your node version (please perform background research before posting your question to stack overflow).
To update your node version, refer to a similar question.
Hope this helps and enjoy your programming journey!
Upvotes: 0