Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log is not defined Fails on nodejs v4.1.0 ... yet OK on v4.0.0 #178

Closed
scottstensland opened this issue Sep 22, 2015 · 4 comments
Closed

Comments

@scottstensland
Copy link

this error only happens on nodejs v4.1.0 works fine on any previous node like v4.0.0

http-server

through https
/home/scott/node-v4.1.0/lib/node_modules/http-server/bin/http-server:118
log('\nAvailable on:'.yellow);
^

ReferenceError: log is not defined
at Server. (/home/scott/node-v4.1.0/lib/node_modules/http-server/bin/http-server:118:5)
at Server.g (events.js:260:16)
at emitNone (events.js:67:13)
at Server.emit (events.js:166:7)
at emitListeningNT (net.js:1257:10)
at doNTCallback1 (node.js:418:9)
at process._tickCallback (node.js:340:17)
at Function.Module.runMain (module.js:477:11)
at startup (node.js:117:18)
at node.js:951:3

installed just now using

npm install -g http-server

as per its package.json

"name": "http-server",
"version": "0.8.2",

node --version
v4.1.0

ubuntu 15.04

@impleri
Copy link
Contributor

impleri commented Sep 22, 2015

I'm getting it on 0.12.x and 0.10.x as well. Could it be a change in the dependency chain

@impleri
Copy link
Contributor

impleri commented Sep 22, 2015

Nope. It's 352ee1c which renames the log function to logger.

@indexzero
Copy link
Collaborator

This was fixed. Please update.

@scottstensland
Copy link
Author

sweet - all ship shape - keep up the good work

cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants