Install node. js
Currently, the latest version of node. JS is 7.6.x. First of all, download the corresponding platform from the node. JS website installation program, the slow speed of children's shoes please step into the domestic mirror.
Be sure to select all components when installing on Windows, including tick Add to Path
.
After the installation is complete, in the Windows environment, open a command prompt, and then enter node -v
, if the installation is OK, you should see v7.6.0
such output:
Continue at the command prompt node
and you will enter node. JS's interactive environment at the moment. In an interactive environment, you can enter any JavaScript statement, for example 100+200
, a carriage return will result in the output.
To exit the node. JS environment, double-click CTRL + C two times.
Since the new version of Nodejs (greater than v7.6.0) has been integrated with NPM, NPM has been installed as well. You can also test for a successful installation by entering "Npm-v" . The following command appears and the version prompt indicates that the installation was successful:
Installing node. js and NPM