Win8 under Nodejs installation configuration record

Source: Internet
Author: User
Tags sublime text

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.