Block-scoped declarations not yet supported outside strict mode

I had the same problem coused by the old version of nodejs package on Ubuntu. I’ve just updated to 7.5 and it’s working.

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs

Leave a Comment