zoukankan      html  css  js  c++  java
  • 在sublime text 3中编译javascript

    1.整理步骤:

    1).安装node.js;

    2).配置js编译系统;


    2.过程

    1).先是按照网上的方法,在配置的时候输入如下内容:

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


    结果一直报 [Decode error - output not utf-8] 错误;

    2).后来直接把配置内容改为

    {
    "cmd":["D:/Program Files/nodejs/node.exe","$file"],
    "selector":"*.js"
    }

    解决问题了,其中 “D:/Program Files/nodejs/node.exe”是nodejs的路径


  • 相关阅读:
    【Coreforces 1253E】
    计数专题乱做
    PKUWC2020乱做
    多项式板子
    notepad
    2021.4.9
    2021.4.8
    2021.3.31
    2021.3.26
    2021.3.25
  • 原文地址:https://www.cnblogs.com/zhuangge/p/9279758.html
Copyright © 2011-2022 走看看