Download the installation package via Nodejs website (right click on "My Computer", "Properties", view 32-bit or 64-bit operating system), after installation, you can do the following:
1. Open command line tool: Windows key +r, enter CMD
2, in English, enter Node-v to view the installed Nodejs version number, if it can be displayed, it means that Nodejs installation is successful
650) this.width=650; "title=" Qq20161030115701.png "src=" http://s2.51cto.com/wyfs02/M02/89/7C/ Wkiol1gvbrwaeim6aabw1ltio1w458.png "alt=" Wkiol1gvbrwaeim6aabw1ltio1w458.png "/>
3, enter node, then enter the node command line, and then input console.log (' Hello world! '), view the log output results
650) this.width=650; "title=" Qq20161030120005.png "src=" http://s1.51cto.com/wyfs02/M01/89/7C/ Wkiol1gvbevzc5b-aaahlgxwqxq948.png "alt=" Wkiol1gvbevzc5b-aaahlgxwqxq948.png "/>
4, can introduce a section of JS file, such as a sum of JS code, the specific operation steps are as follows:
File Save path F/project/nodejs/sum.js
(1), press CTRL + C for two consecutive times, exit node
(2), enter F: (if your JS file is saved on the E-drive is e:), enter the F-drive
(3), enter CD project, go to project folder
(4), enter CS Nodejs, enter the Nodejs folder
(5), input node sum.js, view summation results from 0 to 99
650) this.width=650; "title=" Qq20161030120852.png "src=" http://s5.51cto.com/wyfs02/M00/89/7F/ Wkiom1gvb7nq7ox0aaad75fcs9s258.png "alt=" Wkiom1gvb7nq7ox0aaad75fcs9s258.png "/>
5, with webstorm code editing tools
(1), open files--settings--languages&frameworkds--node.js and NPM
(2), click Enable, configure Nodejs to Webstorm
(3), click Usage scope to see which libraries Nodejs can use, such as HTML, HTML5, Ecmascript5,node.js Core
(4), want to run JS file, you can not like step 4 as cumbersome. Right click on the file name, find run ' xxx.js ', you can view the results of the operation, but also debug with debug
650) this.width=650; "title=" Qq20161030123515.png "src=" http://s1.51cto.com/wyfs02/M01/89/7F/ Wkiom1gvdm-wjptlaadzvnnelp4499.png "alt=" Wkiom1gvdm-wjptlaadzvnnelp4499.png "/>
This article is from the "Dapengtalk" blog, make sure to keep this source http://dapengtalk.blog.51cto.com/11549574/1867313
Nodejs study notes--familiar with environment construction