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