Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top