Skip to content
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

REPL: Unsupported Node.js version 10. Required Node.js version >=12. #950

Open
rwmorton opened this issue Mar 17, 2023 · 7 comments
Open

Comments

@rwmorton
Copy link

When running spago repl I get this error : Unsupported Node.js version 10. Required Node.js version >=12.

which node = /home/richard/.nvm/versions/node/v18.13.0/bin/node

nvm list

image

To reproduce:

Screenshot from 2023-03-17 10-28-34

@the-code-robot
Copy link

Same problem. On my machine (also with nvm using lts) it looks like it picks up "/usr/bin/node" instead of the actual node executable in the environment.

@the-code-robot
Copy link

Try this:
$ spago repl -u "--node-path ~/.nvm/versions/node/v18.14.1/bin/node"

purs repl has an option "--node-path"

and spago repl has an option -u for purs options.

This allowed me to run the spago repl in an nvm environment.

@rwmorton
Copy link
Author

rwmorton commented May 5, 2023

Thank you, I upgraded my Ubuntu and that fixed it but will keep this in mind for next time it happens!

@f-f
Copy link
Member

f-f commented Sep 20, 2023

This should be documented

@JordanMartinez
Copy link
Contributor

Per this site, Node 10 stopped receiving security updates as of April 30, 2021. Does this need to be documented?

@f-f
Copy link
Member

f-f commented Sep 22, 2023

I think the issue is that purs will just use the global Node installation when starting a repl, and Spago users have little control over that

@f-f
Copy link
Member

f-f commented Sep 22, 2023

Now, I am not sure if we can do anything about this, but for example we could have a look at how nvm sets the current Node executable, and try to pass that through to purs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants