[AC-538] Appcelerator CLI give [Error: Module version mismatch. Expected 46, got 14.]
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Needs more info |
| Resolution Date | 2015-12-17T04:33:50.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | cli, nodejs, npm |
| Reporter | Nazir DOĞAN |
| Assignee | Mostafizur Rahman |
| Created | 2015-12-11T13:17:30.000+0000 |
| Updated | 2015-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
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.
My npm version 2.14.7 . What should I do ?
Install the bcrypy module by "npm install bcrypt".
I already installed bcrypt module. But result is same.
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.