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.

Cannot run demo on Windows

See original GitHub issue

npm start is failing on Windows 10.

Details

  • Browser and browser version: ???
  • OS version: Windows 10
  • xterm.js version: 2.2.3

Steps to reproduce

  1. Use Windows 10
  2. Open PowerShell
  3. npm install
  4. npm run

=> npm install

> xterm@2.2.3 prepublish D:\xterm.js
> npm run build


> xterm@2.2.3 build D:\xterm.js
> gulp build

[20:41:33] Using gulpfile D:\xterm.js\gulpfile.js
[20:41:33] Starting 'tsc'...
[20:41:36] Finished 'tsc' after 3.51 s
[20:41:36] Starting 'browserify'...
[20:41:39] Finished 'browserify' after 2.67 s
[20:41:39] Starting 'sorcery'...
[20:41:39] Finished 'sorcery' after 172 ms
[20:41:39] Starting 'build'...
[20:41:39] Finished 'build' after 5.9 μs
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

=> npm start

> xterm@2.2.3 prestart D:\xterm.js
> npm run build


> xterm@2.2.3 build D:\xterm.js
> gulp build

[20:41:55] Using gulpfile D:\xterm.js\gulpfile.js
[20:41:55] Starting 'tsc'...
[20:41:59] Finished 'tsc' after 3.45 s
[20:41:59] Starting 'browserify'...
[20:42:02] Finished 'browserify' after 2.77 s
[20:42:02] Starting 'sorcery'...
[20:42:02] Finished 'sorcery' after 171 ms
[20:42:02] Starting 'build'...
[20:42:02] Finished 'build' after 5.59 μs

> xterm@2.2.3 start D:\xterm.js
> node demo/app

Cannot find module '..\build\Release\pty.node'
module.js:457
    throw err;
    ^

Error: Cannot find module '..\bin\win32\x64.m48.node'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\xterm.js\node_modules\node-pty\lib\pty.js:18:9)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\brian\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.5.0
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! xterm@2.2.3 start: `node demo/app`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xterm@2.2.3 start script 'node demo/app'.
npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the xterm package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node demo/app
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs xterm
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls xterm
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\xterm.js\npm-debug.log

=>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
wavebeemcommented, Feb 21, 2017

OK, I figured that out. Apparently using ConEmu causes the server to never be able to fork a process or something. Using a native PowerShell window totally fixed that. So I can add that to the readme also. Now the demo definitely seems to be working.

0reactions
wavebeemcommented, Feb 21, 2017

No errors in my PowerShell window or in Chrome’s JS console. Also the server seems to hang forever if I refresh.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I'm having trouble installing windows demo experience via flash
1) Close the WDE installation · 2) Open diskmanagement (CTRL X) · 3) At your C drive you will see a 30GB partition...
Read more >
Unable to run demo Windows SDK - Zoom Developer Forum
Hi, I tried to build the Windows SDK in Visual Studio 2017. ... Unable to run demo Windows SDK ... Cannot find or...
Read more >
Games do not run after 'Preparing to Launch' - Steam Support
Games do not run after 'Preparing to Launch'. My game isn't launching. How can I resolve this? For Windows users: Update your Windows...
Read more >
Cannot open the demo program from vulkan-tutorial.com
Since the application never started, the application can't customize or change that error message. Windows will always include a missing .dll ...
Read more >
Cannot open demo files - Blender Developer Talk
I thought it was a file problem. But: If I double-click on the file from Windows 10 Explorer, Blender 3.0.0 opens an empty...
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