Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

SyntaxError: Use of const in strict mode. #4

Closed
megrimm opened this issue Jul 12, 2016 · 1 comment
Closed

SyntaxError: Use of const in strict mode. #4

megrimm opened this issue Jul 12, 2016 · 1 comment

Comments

@megrimm
Copy link

megrimm commented Jul 12, 2016

hello. i get following error with recent git pull:

pi@raspberrypi:~/Development/bitcoin/zenbot $ zenbot backfill

/home/pi/Development/bitcoin/zenbot/node_modules/ws/lib/WebSocket.js:9
const url = require('url');
^^^^^
[SyntaxError: Use of const in strict mode.]
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/pi/Development/bitcoin/zenbot/node_modules/ws/index.js:9:27)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

@megrimm
Copy link
Author

megrimm commented Jul 12, 2016

wow i keep jumping the gun on the issues. the solution here is simply to update nodejs:

npm cache clean -f
npm install -g n
n stable
node --version
npm rebuild

now it works!

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

No branches or pull requests

1 participant