Nodejs Notes-Basic article (i)

Source: Internet
Author: User

Sublime node. JS Development Environment Configuration

Download and install the node. JS installation package Before you start the configuration

1. Install Sublime Text 2 first

2. Run sublime, find tools---> Build system---> New build system on the menu

3. Copy the file into the

{    "cmd": ["Node", "$file"],    "File_regex": "^[]*file \" (... *) \ ", line ([0-9]*)",    "selector": "Source.javascript"}

4. Save the file as Nodejs.sublime-build

5. On the menu, locate tools---> Build System---> select NodeJs

6. Install the package control, run the sublime, press the shortcut key ctrl + '; Enter the following in the console and return;

Sublime Text3import urllib.request,os,hashlib; h= ' eb2297e1a458f27d836c04bb0cbaf282 ' + ' d0e7a3098092775ccb37ca9d6b2e4b7d '; PF = ' package control.sublime-package '; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); by = Urllib.request.urlopen (' http://packagecontrol.io/' + pf.replace (', '%20 ')). read (); DH = hashlib.sha256 (by). Hexdigest (); Print (' Error validating download (got%s instead of%s), please try manual install '% (DH, h))ifDH! = hElseOpen (Os.path.join (IPP, PF), ' WB '). Write (by) sublime Text2import Urllib2,os,hashlib; H= ' eb2297e1a458f27d836c04bb0cbaf282 ' + ' d0e7a3098092775ccb37ca9d6b2e4b7d '; PF = ' package control.sublime-package '; IPP = Sublime.installed_packages_path (); Os.makedirs (IPP)ifNot Os.path.exists (IPP)ElseNone; Urllib2.install_opener (Urllib2.build_opener (urllib2. Proxyhandler ())); by = Urllib2.urlopen (' http://packagecontrol.io/' + pf.replace (', '%20 ')). read (); DH = hashlib.sha256 (by). Hexdigest (); Open (Os.path.join (IPP, PF), ' WB '). Write (by)ifDH = = hElseNone; Print (' Error validating download (got%s instead of%s), please try manual install '% (DH, h)ifDH! = hElse' Restart Sublime Text to finish installation ')

For more information, please refer to: https://sublime.wbond.net/installation#st2

7. After the installation is complete, restart the sublime, press the shortcut key CTRL + Shift + P; Enter install, select Install package and enter

8. Enter NodeJs and select NodeJs installation (can be loaded with JavaScript & NodeJs Snippets)

9. Create a new Test.js file and enter Console.log (' Hello node. js ');

Configuring the Sublime node. JS development environment is successful!

Nodejs version Control NVMW (Node version manager for Windows)

installation command:

NPM install-g NVMW

Notes
It doesn ' t work in Windows Powershell
The latest version for NPM is 1.4.12
Should install a system version Node with Windows installer

Nodejs Notes-Basic article (i)

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.