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\ntm2\NTM2Server2\main
.js:16:10)
at TCPServer.emit (events.js:129:20)
at Server.<anonymous> (C:\Users\conne_000\Documents\ntm2\NTM2Server2\classes\servers\tcp_server.js:20:8)
at Server.emit (events.js:104:17)
at net.js:1171:12
at process._tickCallback (node.js:355:11)
at Function.Module.runMain (module.js:503:11)
at startup (node.js:129:16)
at node.js:814:3
Press any key to continue . . .
I have no idea on what to do about this. Any help is very much appreciated!
Related
events.js:160
throw er; // Unhandled 'error' event
^
Error: Cannot find module 'generator-ng-component/generators/route'
at Function.Module._resolveFilename (module.js:470:15)
at Function.resolve (internal/module.js:27:19)
at child.compose (/usr/local/lib/node_modules/generator-angular-fullstack/generators/route/index.js:7:92)
at Object.<anonymous> (/usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/lib/base.js:439:23)
at /usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/run-async/index.js:25:25
at /usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/run-async/index.js:24:19
at /usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/lib/base.js:440:9
at runCallback (timers.js:649:20)
at tryOnImmediate (timers.js:622:5)
at processImmediate [as _immediateCallback] (timers.js:594:5)
It is my guess that it's an issue with the angular-fullstack generators.
I have been encountering the same issue when performing the following command:
yo angular-fullstack:route [myroute]
angular-fullstack generators are now integrating Angular2, but may not be fully finished. For example, endpoints are working
yo angular-fullstack:enpoint [myendpoint]
I assume this because the code for generator-angular-fullstack/generators/endpoint or generator-angular-fullstack/generators/component look very different than generator-angular-fullstack/generators/route.
Unfortunately, this isn't a solution. If I am correct, I guess we can either wait for an update or create new routes manually for now.
EDIT: generator-angular-fullstack#5.0.0-alpha.3.
Brand new to meteor, have only ever used rails. A friend gave me her app to mess around with. When I run meteor run in the console, and load localhost I get the following error message in the browser. I am finding I cant understand the error message. Could someone please assist me in understanding it?
/Users/mainuser/.meteor/packages/meteor-tool/.1.4.0-1.l0olq8++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
throw(ex);
^
TypeError: Cannot read property 'appId' of undefined
at meteorInstall.imports.startup.server.useraccounts-configuration.js (imports/startup/server/useraccounts-configuration.js:9:12)
at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1)
at Module.Mp.import (/Users/sammyunterman/.meteor/packages/modules/.0.7.5.1f9ncrv++os+web.browser+web.cordova/npm/node_modules/reify/lib/runtime.js:70:16)
at meteorInstall.imports.startup.server.index.js (imports/startup/server/index.js:1:1)
at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1)
at Module.Mp.import (/Users/sammyunterman/.meteor/packages/modules/.0.7.5.1f9ncrv++os+web.browser+web.cordova/npm/node_modules/reify/lib/runtime.js:70:16)
at meteorInstall.server.main.js (server/main.js:1:8)
at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
Exited with code: 1
Your application is crashing. Waiting for file change.
Thank you #king-julian
It was the facebook ServiceConfigurationmethod in /imports/startup/server/useracounts-configuration.js.
Iam a newbie to node.js and when I tried to run the Hello world application it showed error.I created a main.js file and using node repl i called the $ node main.js.It resulted in error
SyntaxError: Unexpected identifier
at Object.exports.createScript (vm.js:24:10)
at REPLServer.defaultEval (repl.js:221:25)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:412:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:210:10)
at REPLServer.Interface._line (readline.js:549:8)
at REPLServer.Interface._ttyWrite (readline.js:826:14)
After that I tried the same with normal command prompt.I traversed to main.js and executed node main.js then it showed the output.But in examples, the JS is executed using the node repl.Its totally confusing.If I try $ node in repl it also shows error. Please help
You need to execute node main.js at your OS command/shell prompt, not the node repl.
I'm getting this error when openssl child proccess is trying to write() to local directory.
Connection is closed before write() is called. It isn't connected with the ssl, because I can't even launch example code from nodejs documentation.
What am I missing? Some kind of special rights for nodejs?
Please, can anyone give me a real example how to use childProccess.stdin.write()?
events.js:85
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at exports._errnoException (util.js:746:11)
at Socket._writeGeneric (net.js:690:26)
at Socket._write (net.js:709:8)
at doWrite (_stream_writable.js:301:12)
at writeOrBuffer (_stream_writable.js:288:5)
at Socket.Writable.write (_stream_writable.js:217:11)
at Socket.write (net.js:634:40)
at signManifest (...\node_modules\passbook\lib\pass.js:360:14)
It appeared that i've installed openssl in a wrong way. An error (wrong openssl directory) while execFile(openssl) emitted 'close' event, so write threw EPIPE.
Be careful and add a lot of proper error handlers :)
We run a node app on heroku. The app makes outgoing https connections to many services, but we can't reproduce our problem with any of these services. We are occasionally (6 times in the last 30 minutes) seeing this error appear and having a hard time tracking it down:
Error: CERT_UNTRUSTED
at SecurePair.<anonymous> (tls.js:1381:32)
at SecurePair.emit (events.js:92:17)
at SecurePair.maybeInitFinished (tls.js:980:10)
at CleartextStream.read [as _read] (tls.js:472:13)
at CleartextStream.Readable.read (_stream_readable.js:341:10)
at EncryptedStream.write [as _write] (tls.js:369:25)
at doWrite (_stream_writable.js:226:10)
at writeOrBuffer (_stream_writable.js:216:5)
at EncryptedStream.Writable.write (_stream_writable.js:183:11)
at write (_stream_readable.js:602:24)
at flow (_stream_readable.js:611:7)
at Socket.pipeOnReadable (_stream_readable.js:643:5)
at Socket.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:427:10)
at emitReadable (_stream_readable.js:423:5)
at readableAddChunk (_stream_readable.js:166:9)
at Socket.Readable.push (_stream_readable.js:128:10)
at TCP.onread (net.js:529:21)
at TCP.onread (/app/node_modules/newrelic/node_modules/continuation-local-storage/node_modules/async-listener/glue.js:177:31)
The only hint about files is the newrelic module at the bottom, which I assume would be in any stacktrace. Does anyone have advice for figuring out where this error is coming from?
If you are using node 0.10.34, this could be the issue
https://github.com/joyent/node/issues/8894
Recommend using v0.10.33 for now.