@oplik0 that's entirely incorrect.
git fetch does literally nothing to local files, and even if it did,
./nodebb upgrade only affects the database and files that aren't handled by git.
No rollback should be necessary, as that error occurred before the upgrade process actually made any changes.
@Todd actually it turns out that node 8 does support that syntax that's causing an error. I just noticed you're using
sudo to run this command. Following a proper install, using
sudo with any
./nodebb command shouldn't be necessary, and doing so usually means you're running the NodeBB server as root as well, which is dangerous.
sudo node -v, I bet root is using an older version.