Closed AshNaz87 closed 4 years ago
That depends on the OS, you can just google "how to set environment variables on {insert os here}"
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
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.
@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/
Will close now :)
Could you explain how to point
NODE_REPL_EXTERNAL_MODULE
towhich node-prototype-repl
?