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?

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top