You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed lighthouse # npm install -g lighthouse.
When I call lighthouse in CLI, I have error:
$ lighthouse
/opt/local/lib/node_modules/lighthouse/lighthouse-cli/compiled-check.js:3
const fs = require('fs');
^^^^^
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.<anonymous> (/opt/local/lib/node_modules/lighthouse/lighthouse-cli/index.js:5:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
What did I do wrong? Sorry for my bad English
The text was updated successfully, but these errors were encountered:
Your version of node is quite old, Lighthouse only officially supports version 6+ (which has support for const/let/a host of other new JS goodies). I suggest grabbing nvm to manage multiple node versions if you still need v0.10 for other packages.
I have:
I installed lighthouse
# npm install -g lighthouse
.When I call
lighthouse
in CLI, I have error:What did I do wrong?
Sorry for my bad English
The text was updated successfully, but these errors were encountered: