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

Error while setup repl #10

Open
ghost opened this issue Jul 12, 2020 · 1 comment
Open

Error while setup repl #10

ghost opened this issue Jul 12, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 12, 2020

Hey there👋🏻

I just stumbled upon this repo and got really satisfied. As you should know, I’m hacking currently on my own Lisp-dialect called twingo and I found that they’re really similar😂😎 I really love the concepts behind Ralph and wish you guys all the best for you projects... I even follow you hahaha😂 so lets go ahead...

I just want to report a problem that occurred while setup on win64bit with nodejs v.11.: After running the NODE_PATH command it prompts with node_path is not a command... I’m sorry for my dumbness but I’m really lost with all the node internals, so what I need to do now?

Here are some links to the twingo project and also to my profile...:

http://GitHub.com/twingo-Lisp/twingo

http://GitHub.com/timo-cmd

Friendly regards

Timo

@turbolent
Copy link
Owner

Hi Timo,

That's very interesting, I'll have a look at both of your projects, thanks for sharing!

The export command is only available on *nix(-like) systems (Linux, macOS, etc.).
On Windows, I think the set command is used to set environment variables, so set NODE_PATH=%cd%\core might work, but I haven't tried it.

Looking at the documentation of node.js, NODE_PATH has been deprecated, so it's a better idea to just move core/ralph to node_modules/ralph instead of setting any environment variables.

There's unfortunately another issue with running the REPL: PR #9 bumped the WebSocket library from 1.1.5 to 7.1.2, due to a security issue in the old version. However, its API has changed in an incompatible way.

Updating the library will require some work, but unfortunately I don't have time to work on this.
If you just want to try the REPL though, simply change the version of ws back to 1.1.5 in package.json, and run npm install. I tested this locally and have the REPL running again, let me know if this works for you.

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

No branches or pull requests

1 participant