I am new to svelte and I want to know how to display the version number of the installed svelte version in the command line. Note that I installed svelte by using degit.
I tried 'npx svelte --version' in the command line but got an error 'npm ERR! could not determine executable to run'. Note: I got that command from chatgpt.
You can check versions of any Node packages with npm ls command.
For UNIX command line you can do:
npm ls|grep -i svelte
And you get output like:
├── @sveltejs/[email protected]
├── @sveltejs/[email protected]
├── @testing-library/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With