zoukankan      html  css  js  c++  java
  • 使用sublime text 开发node.js

    使用sublime text 开发node.js

    1. 下载安装sublime text,

    不用注册即可完全使用,只是偶尔弹框提示购买,完全可以忍受。

    2. 在sublime text下按 Ctrl+Shift+p

    在输入框里输入install, 然后选择Package Control: Install Package

    3. 在接下来的对话框中输入nodejs

    我这里已经安装过nodejs相关插件,所以没有显示相关插件。如果没有安装过,会显示nodejs相关插件,请全部安装。

    4 把build环境设定为nodejs

    在Sublime Text 2菜单 -->Tools-->Build System -->Nodejs

    Preferences-->Package Setting-->Nodejs-->Default

    我的配置:

    • {  
    •   // save before running commands  
    •   "save_first": true,  
    •   // if present, use this command instead of plain "node"  
    •   // e.g. "/usr/bin/node" or "C:in ode.exe"  
    •   "node_command": "C:\Program Files odejs ode.exe",  
    •   // Same for NPM command  
    •   "npm_command": "C:\Program Files odejs pm.cmd",  
    •   "expert_mode": true,  
    •   "ouput_to_new_tab": false  
    • }  

    6. 编辑好代码后,Ctrl+b 运行。

    运行成功后,如果想停止服务,可以在Tools->Cancel Build来停止服务

    附:node.js的简单代码:

    ======================

    调试插件

    https://github.com/houfeng0923/NodejsDebug

    摘自: http://www.cnblogs.com/qqloving/p/3944910.html

    -----------------------------------------------------------------------
    Simple is Beautiful,Less is More.
    --FuGardenia
  • 相关阅读:
    python-django学习
    c++异常处理
    Python输入输出
    Python变量
    Python异常处理
    Python起源与发展
    vsftpd基于mysql的认证方式
    vsftpd搭建ftp服务,并实现虚拟用户访问
    httpd结合php的fpm模式
    编译安装apache
  • 原文地址:https://www.cnblogs.com/yunqianduan/p/3957347.html
Copyright © 2011-2022 走看看