node.js - Confused about nodejs versions and javascript versions -


when install nodejs download following file:

node-v5.5.0-x64.msi 

however, when run "node -v"

 v0.12.2 

i downloaded tutorial code on nodejs , see use new javascript "let" statement instead of old "var" keyword.

however, when try execute javascript code in tutorial, not work until change "let" "var".

then works.

(1) version of nodejs did download? v0.12 or v5?

(2) should support new "let" statement?

(3) there different version can download supports "let" statement?

thanks

siegfried

what you're looking @ in filename not node.js' version or npm's version, release version of installer bundle.

if you're having path issues, as seems are, can let node update itself:

npm update node npm update npm 

and make version in path latest version.


otherwise can edit environment variables manually:

see editing path variable on mac or windows 7 - add path more information on how that.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -