Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I check which babel version is on my windows 10 OS?

Tags:

babeljs

I need help to find which version of Babel is on my Windows Machine. I have installed it using

npm install --save-dev babel-cli babel-preset-env.

How do I check which version is on my Windows OS?

like image 269
Waltham WECAN Avatar asked May 04 '17 18:05

Waltham WECAN


4 Answers

After you finish installing Babel, your package.json file should look like this:

{
  "name": "my-project",
  "version": "1.0.0",
  "devDependencies": {
    "babel-cli": "^6.0.0"
  }
}

So you can find your Babel version in this configuration file.

like image 163
Andrii Pryimak Avatar answered Sep 25 '22 10:09

Andrii Pryimak


Try this at the command line:

npm list babel-cli
like image 38
koen Avatar answered Sep 22 '22 10:09

koen


You can also check the version of babel-cli by finding the babel-cli folder in node_modules and looking at the version property of the package.json that is at the base of that folder.

If babel-cli was installed globally via -g flag of npm install, you could check the version by executing command babel --version.

Hopefully the helps!

like image 34
Alexander Staroselsky Avatar answered Sep 22 '22 10:09

Alexander Staroselsky


As the babel is updated to babel 7, check using npm list @babel/cli or npm list @babel/core

like image 25
Nitin Kumar Avatar answered Sep 21 '22 10:09

Nitin Kumar