Sublime Text 3 NODEDJS environment configuration

Source: Internet
Author: User
Tags sublime text

Previously developed with Webstorm, feeling used for a long time, the start speed became very slow, later thought of St, after their own repeated decision, a good study of its usage, and other online tutorials are similar. This article is mainly for the Nodejs development environment configuration

1, download Sublime text 3 (my is 3065 version) address: HTTP://WWW.SUBLIMETEXT.COM/3

2, after completion, will start to install the package installed tools, this tool is used to install other packages, very useful, which is the highlight of St. Its definition is a text editor, and Ann is uneasy about you. Start the installation below.

Open Sublime text 3.exe go inside, ctrl+~ Open the console, enter

Import Urllib.request,os,hashlib; h = ' 2DEB499853C4371624F5A07E27C334AA ' + ' bf8c4e67d14fb0525ba4f89698a6d7e1 '; 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)) if DH! = H Else Open (Os.pat H.join (IPP, PF), ' WB '). Write (by)

Enter

3, configure the node development environment:

Ctrl+shift+p Open the command, find the package install control, enter the Nodejs, install Nodejs packages, in the menu bar tools>build system tick Nodejs, at this time with Nodejs compiled.

Open one of your most familiar Nodejs code ctrl+b compile, look at the console output, to this step, if the error, garbled words, then use the second set of solutions

Download Nodejs installation package Https://github.com/tanepiper/SublimeText-Nodejs, detailed configuration refer to Http://www.tuicool.com/articles/JZB3Uf

But what she said inside can be run, but the next time you restart, you have to reconfigure it again. Cause when St puts your Nodejs installation package in the Backage folder you have to put it in the Packages>user folder yourself

4. Installing NPM Package Install NPM

Open your Package.json file ctrl+shift+p find npm install out the command line, press ENTER directly is the NPM install command executed,

If you only want to install a certain package, enter install XXXX to this installation.

Sublime Text 3 NODEDJS environment configuration

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.