Sublime Forum

[SOLVED] Can't create a working build system for running NodeJS programs

#1

Hi!

First things first, I’m on Ubuntu 16.04 LTS x64 using ST Build 3122, with the package nodejs installed with apt-get.

I’ve created a sublime build system. In older versions of Ubuntu and Sublime it worked, but now the problem is that the console window:

  1. Is not showing any information
  2. Closes inmediately

The code of my build system is:

{
  "cmd": ["gnome-terminal","-x","nodejs", "$file"],
  "selector": "source.js"
}
0 Likes

#2

You may install the XFCE4 terminal. I am using it and no problems. Try something like this:

"cmd":
[
    "xfce4-terminal",
    "--maximize",
    "--hold",
    "--command",
    "nodejs $file"
],
"selector": "source.js"
0 Likes

#3

Thanks for your reply addons_zz, but I’ve done what you told me and the behavior is the same. A terminal appearing and dissapearing in the blink of an eye. :frowning:

0 Likes

#4

Sorry @addons_zz, I’ve copied your entire build file and now is working like a charm. Thank you.

0 Likes