nodejs / repl

REPL rewrite for Node.js ✨🐢🚀✨
MIT License
177 stars 25 forks source link

Make README more clear #42

Closed AshNaz87 closed 4 years ago

AshNaz87 commented 4 years ago

Could you explain how to point NODE_REPL_EXTERNAL_MODULE to which node-prototype-repl ?

devsnek commented 4 years ago

That depends on the OS, you can just google "how to set environment variables on {insert os here}"

AshNaz87 commented 4 years ago

I'm using Zsh on Mac OS.

I've added this to my .zshrc file:

NODE_REPL_EXTERNAL_MODULE="$HOME/.nvm/versions/node/v12.11.1/bin/node-prototype-repl"

and have run source ~/.zshrc. Still can't get it to work

devsnek commented 4 years ago

I can't really provide support for zsh, but if echo $NODE_REPL_EXTERNAL_MODULE works, then node should be able to pick it up.

TipsyPixie commented 4 years ago

@AshNaz87 You're using v12.11.1 and Node 12 doesn't support NODE_REPL_EXTERNAL_MODULE. It works for >=13.3.0. Check this out. https://github.com/nodejs/node/commit/c0305af2c4 and these. nodejs/node#29778 https://nodejs.org/en/blog/release/v13.0.0/

AshNaz87 commented 4 years ago

Will close now :)