-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node.js simply not working, at all #364
Comments
I had the same problem, but managed to fix it by modifying the [path to Sublime Text]/Packages/SublimeREPL/config/NodeJS/repl.js config file. On line 5 in the file there is a repl.start() call with a config object as an argument:
@wuub has helpfully left in some comments with other possible config values, and for some strange reason, changing the "prompt" value to '>' fixed my problem. For easy copy/pasting, this was the code that worked for me:
|
worked! |
Changing to empty string '' worked as well
you can also input some fancy texts like "\n> " or "NEW COMMAND\n---->" |
worked! thanks a bunch. |
IT works like magic. Thanks. |
This is still an issue, will it get fixed in master? |
Hey! It can be a little hard to find on the windows. Here is the path I found the config files @ C:\Users\micha\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\config\NodeJS |
A bottle of soda @teodoran, so saved my day. |
why on earth isn't this still a default setup? 2 years later the same error which is fixable by modifying a config file... |
Wow...Super easy fix! thanks Rob |
@teodoran it works, but how do you find this way to fix it? Modify the |
Thanks! |
The reason might be the '>' character appears in stdout when you enter "node" in cmd, so when it is set to null, it won't be detected but when you change it to '>', it simply detects that process is waiting for input |
Thanks...this worked for me :) |
No matter what I try, after 4 hours I can't get around this one. I've changed the paths and more.
net.js:605
throw new TypeError('invalid data');
TypeError: invalid data
at Socket.write (net.js:605:11)
at REPLServer.Interface.prompt (readline.js:176:17)
at REPLServer.displayPrompt (repl.js:397:8)
at new REPLServer (repl.js:328:8)
at Object.exports.start (repl.js:337:14)
at C:\Users\MrRob\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\config\NodeJS\repl.js:5:20
at Object. (C:\Users\MrRob\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\config\NodeJS\repl.js:38:3)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:349:32)
_Repl Closed_
The text was updated successfully, but these errors were encountered: