1: Open Nodejs official website http://nodejs.org/Download the installation version.
2: After the installation is complete, open the CMD input node-v to see if the installation was successful:
3: Install Express, install by the global installation method:
After the installation is complete, enter: Express-v test if the installation is successful, prompt
' Express ' is not an internal or external command, nor is it a running program
or batch file.
Enter NPM install-g express-generator to resolve:
4: Install configuration Sublime TEXT3 enable it to support NODEJS development
(1) Download install sublime Text3 HTTP://WWW.SUBLIMETEXT.COM/3
(2) Download Nodejs plugin, download Zip package: Https://github.com/tanepiper/SublimeText-Nodejs, unzip zip, rename to Nodejs.
(3) Copy the Nodejs to the C:\Users\yan\AppData\Roaming\Sublime Text 3\packages:
(4) Restart sublime Text 3->tools-->build System-->nodejs
(5) Configuring the Nodejs path Preferences-->package setting-->nodejs-->default
The configuration information is as follows:
The path of the Npm_command is mainly configured here.
(6) Configure C:\Users\yan\AppData\Roaming\Sublime Text 3\packages\nodejs\nodejs.sublime-build to solve Chinese garbled problem:
"Encoding": "UTF8"
{ "cmd": ["node","$file"], "File_regex":"^[]*file \ "(... *?) \ ", line ([0-9]*)", "selector":"Source.js", "Shell":true, "encoding":"UTF8", "Windows": { "cmd": ["D:\\Program Files\\nodejs\\node.exe","$file"] }, "Linux": { "cmd": ["killall node; node","$file"] }, "OSX": { "cmd": ["killall node, node $file"], }}
(7) Create a new JS file to test: Ctrl+b Run
Win8 under Nodejs installation configuration record