登录  /  注册
node.js - sublime text3 配置nodejs环境,无法编译 no build system
淡淡烟草味
淡淡烟草味 2017-07-06 10:37:01
[Node.js讨论组]

刚接触node.js,使用sublime text3配置node.js编译环境一直出现no build system。
尝试了网上各种配置,最后均失败,请教是哪里出了问题?谢谢

Nodejs.sublime-build 配置:

{
  "cmd": ["D:\\Program Files\\nodejs\\node.exe", "$file"],
  "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
  "selector": "source.js",
  "shell": true,
  "encoding": "utf8",
  "windows":
    {
        "shell_cmd": "taskkill", "/F", "/IM", "D:\\Program Files\\nodejs\\node.exe", "&", "node", "$file"
    },
    "linux":
    {
        "shell_cmd": "killall node; /usr/bin/env node $file"
    },
    "osx":
    {
        "shell_cmd": "killall node; /usr/bin/env node $file"
    }
}

Nodejs.sublime-settings 配置:

{
  "save_first": true,
  "node_command": "D:\\Program Files\\nodejs\\node.exe",
  "npm_command": "D:\\Program Files\\nodejs\\npm.cmd",
  "node_path": false,

  "expert_mode": false,

  "ouput_to_new_tab": false
}

编译新系统配置:

{
    "cmd": ["node", "$file"],
    "selector": "source.js"
}

菜单:工具--编译系统--Nodejs 也有,alt-R 也可运行Nodejs。

但是无法编译,一直提示 no build system

淡淡烟草味
淡淡烟草味

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号