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

Unexpected strict mode reserved word? #859

Closed
stevenmcastano opened this issue Oct 19, 2016 · 5 comments
Closed

Unexpected strict mode reserved word? #859

stevenmcastano opened this issue Oct 19, 2016 · 5 comments
Labels

Comments

@stevenmcastano
Copy link

/opt/apps/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:62
    let port = this._tcpServer.address().port;
    ^^^
SyntaxError: Unexpected strict mode reserved word
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/opt/apps/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:11:25)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

Trying a fresh install have my old one of v0.1.1 stopped working.

@KhaosT
Copy link
Contributor

KhaosT commented Oct 19, 2016

please try update nodejs to a newer version. like v5.0 or later

Best Wishes,
Tian

On Oct 19, 2016, at 1:05 PM, stevenmcastano notifications@github.com wrote:

/opt/apps/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:62
let port = this._tcpServer.address().port;
^^^
SyntaxError: Unexpected strict mode reserved word
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/opt/apps/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:11:25)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
Trying a fresh install have my old one of v0.1.1 stopped working.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #859, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpU4JFFLusJ9cdGQw-MBHF27nIPYG6sks5q1ngBgaJpZM4KbZZ2.

@stevenmcastano
Copy link
Author

Upgraded and now everything is running, new issue though with multi cast I think, I’ll open a new ticket.

*SMC

On Oct 19, 2016, at 4:06 PM, Khaos Tian notifications@github.com wrote:

please try update nodejs to a newer version. like v5.0 or later

Best Wishes,
Tian

On Oct 19, 2016, at 1:05 PM, stevenmcastano notifications@github.com wrote:

/opt/apps/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:62
let port = this._tcpServer.address().port;
^^^
SyntaxError: Unexpected strict mode reserved word
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/opt/apps/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:11:25)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
Trying a fresh install have my old one of v0.1.1 stopped working.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #859, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpU4JFFLusJ9cdGQw-MBHF27nIPYG6sks5q1ngBgaJpZM4KbZZ2.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #859 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AF4rND8gGq0-3d-lj4YEg0_14xq12I2gks5q1ng4gaJpZM4KbZZ2.

@ViViDboarder
Copy link

ViViDboarder commented Nov 14, 2016

I'm getting this same issue using node v7.0.

It's a brand new install that I'm doing inside a container, so there should be little to no other influence. I've looked at the other closed issues that are related to this and they all say to use a newer version of node, so I've bumped mine up to 7.0 but it keeps happening.

Here is my Dockerfile that shows my install command, and here is where the base image is installing node. Is there something else that could cause this error beyond just the version of node? I have very little experience with node myself, so it may be a silly question.

Edit: Actually, tried again and it seems to be working... Not sure what fixed it. If I find out I'll reply.

@stale
Copy link

stale bot commented Oct 31, 2017

This issue has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.

@stale stale bot added the stale label Oct 31, 2017
@stale stale bot closed this as completed Nov 14, 2017
@armansa
Copy link

armansa commented Oct 17, 2019

I'm having same issue with node 6.12.0

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

No branches or pull requests

4 participants