Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26504] appc command is not recognized even installing appcelerator studio with Node and NPM

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDone
Resolution Date2018-12-06T04:45:51.000+0000
Affected Version/sRelease 7.5.0
Fix Version/sn/a
ComponentsCLI, Tooling
Labelsn/a
ReporterJebun Naher
AssigneeUnknown
Created2018-10-31T06:33:06.000+0000
Updated2018-12-06T04:45:51.000+0000

Description

*Issue Overview*: When trying to run CLI commands it shows appc is not recognised error. Tried to run the follow command: *npm install -g appcelerator* *appc ti setup check* That show the same error: *appc is not recognised*. I'm using node version *8.12.0 on Windows 10. My Java version is : Java(TM) SE Runtime Environment (build 1.8.0_171-b11)* Please find the attached log.
C:\windows\system32>npm install -g appcelerator
npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
C:\Users\srikanth.sutari\AppData\Roaming\npm\appc -> C:\Users\srikanth.sutari\AppData\Roaming\npm\node_modules\appcelerator\bin\appc
C:\Users\srikanth.sutari\AppData\Roaming\npm\appcelerator -> C:\Users\srikanth.sutari\AppData\Roaming\npm\node_modules\appcelerator\bin\appc
+ appcelerator@4.2.13
updated 1 package in 149.422s
C:\windows\system32>appc use latest -l trace
'appc' is not recognized as an internal or external command,
operable program or batch file.
C:\windows\system32>echo %PATH%
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Java\jdk1.8.0_151\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Git\cmd;C:\Users\srikanth.sutari\Downloads\node-v8.9.4-win-x64_1\node-v8.9.4-win-x64;C:\Users\srikanth.sutari\AppData\Local\Microsoft\WindowsApps

Attachments

FileDateSize
log2018-10-31T06:19:00.000+00009064031

Comments

  1. Ewan Harris 2018-11-02

    [~jnaher], seeing as the node in their path is in the downloads folder, I'm guessing the user did not install node via the installer? The node installer adds all the necessary paths needed for usage to a users path. Including %APPDATA%\npm, which the user is missing. Looking at the users logs they should also add C:\Users\srikanth.sutari\AppData\Roaming\npm to their path
  2. Motiur Rahman 2018-12-06

    Using the basic troubleshooting tricks and workaround this issue has been fixed. 1. uninstalled appcelerator (npm uninstall -g appcelerator). 2. Then uninstalled Node. 3. Also, delete any node directory to make sure any traces of Node was removed. 4. Reinstall Node 5. Reinstall appcelerator (npm install -g appcelerator) 6. Run - appc use latest -l trace Thanks!

JSON Source