/usr/local/lib/node_modules/appcelerator/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/got/index.js:3
const EventEmitter = require('events').EventEmitter;
^^^^^
SyntaxError: Use of const in strict mode.
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.
(/usr/local/lib/node_modules/appcelerator/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/index.js:2:11)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
Hello, Thanks for sharing with us. It would be better if you can share a sample test case to reproduce the issue. Please provide a full sample code and steps to follow for regenerating the issue. Thanks.
I had the same problem, because my node version was just very ancient (v.0.10.13). After installing the latest LTS version v4.4.0 from https://nodejs.org this error vanished.