Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking Svelte version from a command line

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.

like image 367
لوسيفر جبريل Avatar asked Aug 01 '26 14:08

لوسيفر جبريل


1 Answers

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]

like image 102
Mikko Ohtamaa Avatar answered Aug 07 '26 23:08

Mikko Ohtamaa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!