-
Notifications
You must be signed in to change notification settings - Fork 132
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
Comments
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. |
Try this: 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. |
Thank you, I upgraded my Ubuntu and that fixed it but will keep this in mind for next time it happens! |
This should be documented |
Per this site, Node 10 stopped receiving security updates as of April 30, 2021. Does this need to be documented? |
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 |
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 |
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
To reproduce:
The text was updated successfully, but these errors were encountered: