node. JS has been out for a while and it's time to do something, though not yet 1.0, but it should be fast.
Installation
Have to say, as the Late Show, all kinds of tools do well, install node is also, is a few minutes of things, there is a thing called NVM, Windows corresponding to the NVMW, used to install node, want to Ann several versions are not laborious AH. To start the installation:
- git clone git://github.com/hakobera/nvmw.git "%HOMEDRIVE%%HOMEPATH%.NVMW"
- Set "path=%homedrive%%homepath%.nvmw;%path%"
The second step can also be added to the environment variable path, once and for all. NVMW is installed, it is very good to use it to install node. NVMW Install 0.12.0
If access to GitHub is normal, less than 1 minutes, done. Then, NVMW use 0.12.0, enter node, if you jump out of the command line, it means the installation is successful.
Configure Phpstorm
- Phpstorm the default of course and node does not matter, but there are plugins ah. In the settings plugin, add the node. js plugin.
- Set up? node. js and NPM, set the Node.exe path, download the source code
- Run? Debug settings, add a node. js Debug Configuration, and configure each parameter
A little bug, start the browser, set breakpoints, refresh under, OK, stop! The little buddy is no longer worried about node. js Debugging.
Debugging node. JS Code with Phpstorm