[AC-184] Can't install or update Cli
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2015-07-21T20:35:12.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator CLI |
Labels | cli |
Reporter | Robert Blom |
Assignee | Radamantis Torres-Lechuga |
Created | 2015-06-26T07:08:50.000+0000 |
Updated | 2015-07-21T20:35:13.000+0000 |
Description
After installing Appcelerator Studio (Where Cli failed to install), I can't install or update Cli.
Cli should be available because I used Titanium studio before (Which still is installed on my machine).
node -v gives v0.12.5
npm -v give 2.11.2
Attached is my error log.
Attachments
Hello, You can install Appcelerator CLI through terminal. Please follow the link [here](https://web.appcelerator.com/product/cli). Follow the instruction there. Make sure you you have Node.js installed. Thanks.
Thanks for the link, but already tried this. The results are: sudo npm install appcelerator -g it ends with semver@3.0.1 I can't see any errors appc setup. -bash: appc: command not found. Kinds regards
Hello [~info7], Your problem is with your node.js. Please remove the current node.js and install the latest node.js from the link. After that again try following the instruction on the link. Make sure you have JDK properly updated. Reply with your findings. Thanks.
Hello Amimul Hossain, I uninstalled my version of node.js and installed the version from the link (0.10.37). JDK is up to date as far as I know (1.7.0). Still the same error: appc: command not found. In addition I tried the appcelerator studio installer. At the prerequisites screen it says Appcelerator Cli will be installed. After hitting next It says 'Installation of Appcelerator Cli failed with issues' . The more button says: Could not locate appc executable after installation. Thanks
Hello [~info7], what does the "sudo npm install appcelerator -g" command output? does it installed properly?
See screenshot !screenshot-1.png!
Looks the npm prefix value is corrupted on the machine. - Run the command
npm config get prefix
and/ornpm get prefix
and make sure this refers to the default value/usr/local
. - Also, env variable NPM_CONFIG_PREFIX should be empty.Like Praveen said... npm config set prefix /usr/local Did solve the problem!
Like Praveen said setting the npm prefix to the default fixed my problem. Thanks guys for all the support.