Meteor Svelte installation & configuration using nodejs


As of 1st Jan 2023, Meteor requires node version 14.x
Most of us use the latest node version.
So to use meteor we have to install node version 14 whole keeping the latest version of nodejs
Open CMD
Check the current node version
node --version
Download NVM (Node version manager) Node Version Manager URL
Now install nvm
Open CMD and run
nvm list
To check how many node versions are available on the system
Now to install an older version of the node, run
nvm install 14.0.0
Now check all the available versions of the node in the system
nvm list
This time there will be 2 available version
Run this code to use node 14.0.0
nvm use 14.0.0
Additionally, we might need a specific npm version too, to install a specific npm version, run this code
npm install -g [email protected]
Now install meteor globally
npm install -g meteor
Now open the project folder path in CMD or in VScode & run
meteor create --svelte --tailwind .
meteor
or, to run the application with a specific port, run
meteor --port 8080

Improve caching and performance in SvelteKit by importing images from src/lib instead of static. Learn why and how this approach works.