Node.js Box2dWeb error caused by require()
问题 I'm trying to make a server using Node.js and Box2dWeb engine. But trying to "import" the "box2d.js" throws me a random error which doesn't seem to be related with what I'm doing. Here's the code that's causing the error: var Box2D = require('./box2d.js'); Here's the error: console.js:55 this._stdout.write(util.format.apply(this, arguments) + '\n'); ^ TypeError: Cannot read property 'write' of undefined at Console.log (console.js:55:15) at TCPServer.<anonymous> (C:\Users\conne_000\Documents