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

cant run node PiCamera_accessory.js ? ideas? #10

Open
raaffq opened this issue May 28, 2018 · 6 comments
Open

cant run node PiCamera_accessory.js ? ideas? #10

raaffq opened this issue May 28, 2018 · 6 comments

Comments

@raaffq
Copy link

raaffq commented May 28, 2018

pi@raspberrypi:/HomeKitCam $ ls
LICENSE node_modules package.json PiCamera_accessory.js README.md
pi@raspberrypi:
/HomeKitCam $ node PiCamera_accessory.js
/home/pi/HomeKitCam/PiCamera_accessory.js:25
let sessionIdentifier = uuid.unparse(sessionID);
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:134:18)
at node.js:961:3
pi@raspberrypi:~/HomeKitCam $

@theopoon
Copy link

Please check your node version.

~/node -v

@raaffq
Copy link
Author

raaffq commented May 28, 2018

pi@raspberrypi:~ $ node -v
v4.2.1

@theopoon
Copy link

Consider upgrading your node

@raaffq
Copy link
Author

raaffq commented May 28, 2018

How I can update? I try pi@raspberrypi:~ $ sudo apt-get install -y nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (10.2.1-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
pi@raspberrypi:~ $ node -b
node: bad option: -b
pi@raspberrypi:~ $ node -v
v4.2.1
pi@raspberrypi:~ $

@raaffq
Copy link
Author

raaffq commented May 29, 2018

cant update , after update still showing old version

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

2 participants