2
change node version
andreebr (2)

Can I change the node version of a repl?

You are viewing a single comment. View All
2
Mosrod (253)

You cannot modify a language's version on repl.it if it does not have a separate language for the version (e.g. Python 3&2).

1
ash15khng (209)

@Mosrod @andreebr adding on to this you could copy and paste your code into another repl with the correct version, however it may be tedious if you have multiple files.

1
andreebr (2)

@ash15khng I couldn't find a way to create a node repl on a diferent version (sorry for the late response =S)

But thanks anyway =D

1
ash15khng (209)

@andreebr Actually, if you check out repl.it/languages there seems to be only 1 version of node.js currently supported on repl.it.

1
sinclairzx81 (0)

@ash15khng repl.it seems to be running different versions of node for different environments. As of writing..

NodeJS -> v10.16.0
TypeScript + NodeJS -> v9.11.2

It would be good to be able to set the NodeJS runtime, or perhaps use the current LTS for all node runtimes. repl.it is a pretty good way to communicate repros for developers tho, it would be better to able to select the appropriate runtime if possible.