Page MenuHomePhabricator

Node is now very exciting to install on Ubuntu 14?
Open, WishlistPublic

Description

Aphlict is now failing to start on secure with an error like this:

SyntaxError: Use of const in strict mode.

Unclear exactly why this started happening since I just did a normal push. One remedy is to do this little dance:

$ sudo npm install -g n # Install a binary called "n".
$ sudo n stable         # Install the stable version of "node".
$ sudo mv /usr/bin/nodejs /usr/bin/nodejs.ubuntu # Move old nodejs away so we pick node instead.

Robust!

Event Timeline

T13182 was a resurgence of this exact issue, but I'm currently banking on the fix being a move to Ubuntu 16 with T13076 before this breaks again, given that it was stable for ~18 months.