SyntaxError: Use of const in strict mode?

Updating nodejs solved the issue:

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

You have to run the second and third command as root/administrator.

Leave a Comment