You can say
(enable-console-print!)
to print using console.log
.
Under the hood, enable-console-print!
sets *print-newline*
and *print-fn*
. Here's the source as of r2156.
Question
I have followed the "hello world!" examples for NodeJS on both these guides
and for each I get this error
Error: No *print-fn* fn set for evaluation environment
Have I missed a step? This seems like a fairly basic problem ... does anyone know where print-fn is set?
Solution
You can say
(enable-console-print!)
to print using console.log
.
Under the hood, enable-console-print!
sets *print-newline*
and *print-fn*
. Here's the source as of r2156.