Here is a node. js ready to include the installation of node. JS, command line run node. js file, use Webstrom to write node. js when prompted, and Webstrom to run node. js
In fact, there are so many people who write these things, so thank the great gods for their shared spirit.
1. Node. js installation (Windows)
Http://www.runoob.com/nodejs/nodejs-install-setup.html
This tutorial is particularly detailed, I will generally install it on the D or E disk, and then named Node-install, a sibling directory to create a node-workspace that I write my own program here, this is not a problem, but remember the location of your installation
2. Command line to run the node. js file
There is a Node.exe parser in the installation directory, it starts to feel like a front-end console.
Now I'm writing a server.js file with a piece of code console.log ("Hello, node. js"), how to run it, very simple, find the location of the file, then open the command line (SHIFT + right), enter Node server.js return
Here print Chinese "hello" appear garbled phenomenon, the simplest solution is as follows:
But you will find the choice of UTF8 encoding, the original Hello garbled, you need to re-write again, a good, many situations is very troublesome, so when you use the editor to create a file need to determine the current encoding format, I think it is an excellent habit
3, Configuration Webstrom
I'll share some good articles here.
I can't find it.
I'll write it myself ...
(1) Configuring node. js and PNM
(2) Configuration Libraries
My company computer has been configured, at night to go back with their own computer configuration.
The follow-up will be out of node. JS Learning article, I work with the synchronization of learning, the shortcomings of the understanding, the last to play a company advertising, Lonbon-concentrate on doing a good thing!
node. JS Learning Preparation Chapter