sublime2 下配置nodejs 问题


本来配置好的,昨天突然出现问题了。ctrl + B 后什么都不显示。然后查看了下控制台


 Running node E:\fate\test\test.js
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 337, in run_
  File ".\exec.py", line 154, in run
  File ".\exec.py", line 45, in __init__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa3 in position 228: ordinal not in range(128)

这是我的node_build设置


 {
  "cmd": ["node", "$file"],
  "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
  "selector": "source.js",
  "shell":true,
  "encoding": "cp1252",
  "windows":
    {
      "cmd": ["node", "$file"]
    },
  "linux":
    {
        "cmd": ["killall node; node", "$file"]
    }
}

试了下


 "encoding": "utf-8"

也不行。。。。网上各种方法都试了下都不行

node.js sublime-text

takAkI 10 years, 8 months ago

Your Answer