Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3366] Error node js appc command and login

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2016-03-14T14:16:01.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsStudio
Labelscore
ReporterValmiki
AssigneeShak Hossain
Created2016-03-11T12:05:56.000+0000
Updated2016-03-14T20:28:13.000+0000

Description

From *ti info*: Titanium SDK version 5.2.0.GA Node.js Node.js Version = 0.12.7 npm Version = 2.11.3 Titanium CLI CLI Version = 4.0.1 node-appc Version = 0.2.26 I just updated to newer version of Appcelerator and now I got this error just after login and every command I launch using appc: /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) How to solve? Please I cannot find anything similar on your Jiira.

Attachments

FileDateSize
Schermata 2016-03-10 alle 20.29.58.png2016-03-11T12:04:50.000+0000160323

Comments

  1. Sharif AbuDarda 2016-03-13

    Hello, Please try running the following command in the terminal, rm -rf ~/.appcelerator rm -rf ~/.titanium sudo npm uninstall -g titanium sudo npm uninstall -g appcelerator sudo npm install -g appcelerator appc use latest appc setup Reply with your findings. Thanks.
  2. Valmiki 2016-03-14

    Hi Sharif, thank you for you valuable support. All the commands you suggested worked and the AppceleratorStudio IDE came back to life. Anyway if I run the project to a iOS simulator or Android Emulator it doesn't start showing this error: dyld: lazy symbol binding failed: Symbol not found: __ZN2v86Object3SetENS_6HandleINS_5ValueEEES3_NS_17PropertyAttributeE Referenced from: /Users/me/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.GA/node_modules/ioslib/node_modules/node-ios-device/out/node_ios_device_v14.node Expected in: dynamic lookup

JSON Source