Skip to content
← Back to Community
Upgrade Required Node.js
Profile icon
h
has Hacker Plan
realTronsi

I'm working on a simple chat application. It works on localhost, but whenever I upload it into repl, it says "Upgrade Required".

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
DigiLab
Profile icon
realTronsi
Comments
hotnewtop
Profile icon
Coder100

Hello, hit ctrl+shift+s
and do: npm i node

This worked for me. Hopes this helps!

Profile icon
realTronsi

@Coder100 didnt work for me unfortunately, are there any alternatives

Profile icon
realTronsi

@Coder100 when you say "this worked for me" do you mean specifically for this repl? If so it may just be some school laptop restrictions messing up repl

Profile icon
Coder100

hmm... strange, schools shouldn't be able to change repl.it's behavior, but you could also manually install node.js and manually drop in the shell file at the end. @realTronsi

Profile icon
realTronsi

@Coder100 that problem seems to be fixed, but now I have a new problem where the websockets handshakes are failing because repl uses https, and im not sure how websockets would work on repl

Profile icon
finnegan

I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information.Nft games

Profile icon
TheForArkLD

This message isn't for update nodejs, this message is for upgrade server.

Profile icon
realTronsi
Profile icon
realTronsi

@TheForArkLD this code works perfectly fine in localhost, so im not sure if its something with repl or what

Profile icon
TheForArkLD

@realTronsi ok read it

Profile icon
realTronsi

@TheForArkLD I know what the error is, but I just dont know how to fix it since it works fine in localhost

Profile icon
TheForArkLD

@realTronsi sry idk...
i cant help you sry....
can i do collab with me?
this is my reflection...

Profile icon
TheForArkLD

@realTronsi (i recommend use socket.io)

Profile icon
realTronsi

@TheForArkLD sure I can collab, I've been focusing on websockets and such

Profile icon
TheForArkLD

@realTronsi ok, can you make bash repl?

Profile icon
realTronsi

@TheForArkLD I dont know any bash, Ive been focusing on javascript and web development lately :(

Profile icon
TheForArkLD

@realTronsi you dont need code bash :)