2.3.6.[Debug message]const Hoek = require('hoek'); ^^^^^ SyntaxError: Use of const in strict mode.

  • symptom

    • node version was too old

  • solution

npm cache clean -f
sudo npm install -g n
sudo n stable
node --version
node app.js

Last updated