Giter Club home page Giter Club logo

Comments (2)

dickhardt avatar dickhardt commented on August 29, 2024

I guess you can't run on Windows! :) Looks like the dateformat module does not work on Windoze.

You can go into middleware.js and edit the logging code to not get the date data so that it will run on Windows. There is a line

change line 144 from

return express.logger( '\x1b[2m:localTime\x1b[0m|\x1b[2m:remoteIP\x1b[0m :wideHost\t:method\t:url\t:statusColor\t:response-time\tms\t:errorCode\t:errorMessage' )

to

return express.logger( \x1b[2m:remoteIP\x1b[0m :wideHost\t:method\t:url\t:statusColor\t:response-time\tms\t:errorCode\t:errorMessage' )

On Feb 4, 2013, at 11:39 AM, GregTurner [email protected] wrote:

C:\Users\gturner\Documents\GitHub\a2p3>npm start

[email protected] start C:\Users\gturner\Documents\GitHub\a2p3
node app/app.js

Mon Feb 04 2013 11:37:03 GMT-0NaN (Pacific Standard Time)
A2P3 servers started on *.local.a2p3.net:8080
Setup available at http://setup.local.a2p3.net:8080

we are going to die from uncaught exception !
we received error:
TypeError: Invalid date
at TypeError (unknown source)
at C:\Users\gturner\Documents\GitHub\a2p3\node_modules\dateformat\lib\dateformat.js:69:13
at Function.exports.colorLogger.express.logger.token.wideHost as localTime
at eval (eval at compile (C:\Users\gturner\Documents\GitHub\a2p3\node_modules\express\node_modules\connect\lib\middl
eware\logger.js:173:10))
at ServerResponse.module.exports.res.end (C:\Users\gturner\Documents\GitHub\a2p3\node_modules\express\node_modules\c
onnect\lib\middleware\logger.js:149:20)
at onend (stream.js:66:10)
at EventEmitter.emit (events.js:126:20)
at afterRead (fs.js:1330:12)
at Object.wrapper as oncomplete
we are going to die from exit !

C:\Users\gturner\Documents\GitHub\a2p3>


Reply to this email directly or view it on GitHub.

from a2p3.

GregTurner avatar GregTurner commented on August 29, 2024

that worked. thanks... working on Bank web app now.

On Mon, Feb 4, 2013 at 11:48 AM, Dick Hardt [email protected]:

I guess you can't run on Windows! :) Looks like the dateformat module does
not work on Windoze.

You can go into middleware.js and edit the logging code to not get the
date data so that it will run on Windows. There is a line

change line 144 from

return express.logger( '\x1b[2m:localTime\x1b[0m|\x1b[2m:remoteIP\x1b[0m
:wideHost\t:method\t:url\t:statusColor\t:response-time\tms\t:errorCode\t:errorMessage'
)

to

return express.logger( \x1b[2m:remoteIP\x1b[0m
:wideHost\t:method\t:url\t:statusColor\t:response-time\tms\t:errorCode\t:errorMessage'
)

On Feb 4, 2013, at 11:39 AM, GregTurner [email protected] wrote:

C:\Users\gturner\Documents\GitHub\a2p3>npm start

[email protected] start C:\Users\gturner\Documents\GitHub\a2p3
node app/app.js

Mon Feb 04 2013 11:37:03 GMT-0NaN (Pacific Standard Time)
A2P3 servers started on *.local.a2p3.net:8080
Setup available at http://setup.local.a2p3.net:8080

we are going to die from uncaught exception !
we received error:
TypeError: Invalid date
at TypeError (unknown source)
at
C:\Users\gturner\Documents\GitHub\a2p3\node_modules\dateformat\lib\dateformat.js:69:13

at Function.exports.colorLogger.express.logger.token.wideHost as
localTime
at eval (eval at compile
(C:\Users\gturner\Documents\GitHub\a2p3\node_modules\express\node_modules\connect\lib\middl

eware\logger.js:173:10))
at ServerResponse.module.exports.res.end
(C:\Users\gturner\Documents\GitHub\a2p3\node_modules\express\node_modules\c
onnect\lib\middleware\logger.js:149:20)
at onend (stream.js:66:10)
at EventEmitter.emit (events.js:126:20)
at afterRead (fs.js:1330:12)
at Object.wrapper as oncomplete
we are going to die from exit !

C:\Users\gturner\Documents\GitHub\a2p3>


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-13095394.

from a2p3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.