Titanium JIRA Archive
Appcelerator Community (AC)

[AC-538] Appcelerator CLI give [Error: Module version mismatch. Expected 46, got 14.]

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-12-17T04:33:50.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelscli, nodejs, npm
ReporterNazir DOĞAN
AssigneeMostafizur Rahman
Created2015-12-11T13:17:30.000+0000
Updated2015-12-17T04:33:50.000+0000

Description

I m OSX El capitan.and node 4.2.3. When you prompt Appcelerator CLI for example appc -v .its give me [Error: Module version mismatch. Expected 46, got 14.] 5.1.0

Comments

  1. Sharif AbuDarda 2015-12-13

    Hello, appc -v return the Appcelerator CLI version. In your case, the error comes because of your npm version. To check your npm version try "npm -v". If the version is 3.X.X you need to install another module (try "npm install bcrypt") to get everything working. For more information on the issue please follow this link [here](https://github.com/ncb000gt/node.bcrypt.js/issues/347). Thanks.
  2. Nazir DOĞAN 2015-12-13

    My npm version 2.14.7 . What should I do ?
  3. Sharif AbuDarda 2015-12-14

    Install the bcrypy module by "npm install bcrypt".
  4. Nazir DOĞAN 2015-12-14

    I already installed bcrypt module. But result is same.
  5. Sharif AbuDarda 2015-12-15

    Hello, Try upgrading your node version from [here](https://nodejs.org/en/). After that Try running this commands: • sudo rm -rf ~/.appcelerator • sudo rm -rf ~/.titanium • sudo npm uninstall -g titanium • sudo npm uninstall -g alloy • sudo npm uninstall -g acs • sudo npm uninstall -g appcelerator • sudo npm install -g appcelerator • appc use latest • appc setup • sudo npm install -g alloy Hope this helps, Thanks.

JSON Source