chjj / tty.js

A terminal for your browser, using node/express/socket.io
MIT License
4.19k stars 480 forks source link

Cannot find module 'pty.js' even though it has been installed. Fixed it! #179

Closed veeru153 closed 6 years ago

veeru153 commented 6 years ago

I tried running tty.js in my terminal (so that I can use the Brackets Terminal Extension). However, every time, I end up with an error that says that it can't find the module pty.js. I looked stuff up and installed pty.js. I tried to reinstall both pty.js and tty.js But I ended up facing the same error. What else could I do?

I added the exact error from the terminal below:

internal/modules/cjs/loader.js:550
    throw err;
    ^

Error: Cannot find module 'pty.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
    at Function.Module._load (internal/modules/cjs/loader.js:475:25)
    at Module.require (internal/modules/cjs/loader.js:598:17)
    at require (internal/modules/cjs/helpers.js:11:18)
    at Object.<anonymous> (/private/tmp/tty.js/lib/tty.js:17:11)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
    at Function.Module._load (internal/modules/cjs/loader.js:498:3)