question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to start the server?

See original GitHub issue

I’m pretty sure there must be a server involved somewhere, since it’s a terminal, but the Getting started section at https://xtermjs.org/ doesn’t mention one.

For someone who’s never used node or npm before, it’s not obvious.

I tried downloading the src, naviagating to the demo directory, and trying node start.js, node server.js… and also, npm start, but all crashed.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jerchcommented, Oct 6, 2018

@Tyriar Linking to the electron demo in node-pty sounds good.

@hyperpallium npm install xterm installs the drilled down package from the npm repo, imho this does not contain the dev parts like the demo in source code repo. To get the demo part as well, run:

#> git clone https://github.com/xtermjs/xterm.js.git
#> cd xterm.js
#> npm install
#> npm start

and point your browser to localhost:3000.

1reaction
Tyriarcommented, Oct 5, 2018

We have a warning on the demo HTML page, I think this is enough:

https://github.com/xtermjs/xterm.js/blob/a7b051c52f1cb6bc4c02a1786a9d949bd8d46ad7/demo/index.html#L37

We could also alter the demo to an electron/puppeteer only development path

node-pty has a barebones Electron demo https://github.com/Microsoft/node-pty/tree/master/examples/electron, maybe we should link to that at the bottom of the demo too?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Starting and Stopping the Application Server
Using Windows Program Group Items. On Windows, the easiest means of starting the entire application server is to use the Start button on...
Read more >
Starting the server as a Windows service - IBM
Procedure · Log on to the server with a user ID that is in the Administrators group. · From the Windows Start menu,...
Read more >
How do you set up a local testing server? - MDN Web Docs
Running a simple local HTTP server · Install Python. · Open your command prompt (Windows) / terminal (macOS/ Linux). · This should return...
Read more >
Unable to Start the Server Service - Microsoft Support
Could not start the Server service on \\<Computer Name>. Error 1058: The specified service is disabled and cannot be started. When you attempt...
Read more >
How to set up a server for a small or mid-sized business
Prepare. Before you begin, document your network. · Install your server. If your server came with an operating system preinstalled, you can connect...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found