Sublime Text 3 插件安装

  1. Nodejs 插件安装
#手动安装:
下载地址:https://github.com/tanepiper/SublimeText-Nodejs
下载文件(SublimeText-Nodejs-master.zip)解压并修改成:Nodejs
打开Nodejs文件夹,找到文件“Nodejs.sublime-build“,修改”encoding”: “cp1252”,为”encoding”: “utf-8”
要用sublime打开文件“Nodejs.sublime-settings” 或
设置preference ->package settings ->Nodejs ->setting-default 打开文件并 更改为如下代码:
{
  // save before running commands
  "save_first": true,
  // if present, use this command instead of plain "node"
  // e.g. "/usr/bin/node" or "C:\bin\node.exe"
  "node_command": "C:\\Program Files\\nodejs\\node.exe",
  // Same for NPM command
  "npm_command": "C:\\Program Files\\nodejs\\npm.cmd",
  // as 'NODE_PATH' environment variable for node runtime
  "node_path": true,
  "expert_mode": false,
  "ouput_to_new_tab": false
}
关闭重启sublime text 3便可正常编辑和运行nodejs(Ctrl+b)运行Node.js

输入图片说明

相关文章
相关标签/搜索