{ "id": "172524", "key": "TIMOB-26504", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2018-12-06T04:45:51.000+0000", "created": "2018-10-31T06:33:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "issuelinks": [], "assignee": null, "updated": "2018-12-06T04:45:51.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10207", "name": "Tooling" } ], "description": "*Issue Overview*:\r\nWhen trying to run CLI commands it shows appc is not recognised error. Tried to run the follow command:\r\n*npm install -g appcelerator*\r\n*appc ti setup check*\r\nThat 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)*\r\nPlease find the attached log.\r\n\r\n{code}\r\nC:\\windows\\system32>npm install -g appcelerator\r\nnpm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?\r\nnpm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.\r\nnpm 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\r\nC:\\Users\\srikanth.sutari\\AppData\\Roaming\\npm\\appc -> C:\\Users\\srikanth.sutari\\AppData\\Roaming\\npm\\node_modules\\appcelerator\\bin\\appc\r\nC:\\Users\\srikanth.sutari\\AppData\\Roaming\\npm\\appcelerator -> C:\\Users\\srikanth.sutari\\AppData\\Roaming\\npm\\node_modules\\appcelerator\\bin\\appc\r\n+ appcelerator@4.2.13\r\nupdated 1 package in 149.422s\r\n{code}\r\n\r\n{code}\r\nC:\\windows\\system32>appc use latest -l trace\r\n'appc' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n{code}\r\n\r\n{code}\r\nC:\\windows\\system32>echo %PATH%\r\nC:\\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\r\n{code}\r\n", "attachment": [ { "id": "65795", "filename": "log", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-10-31T06:19:00.000+0000", "size": 9064031, "mimeType": "text/html" } ], "flagged": false, "summary": "appc command is not recognized even installing appcelerator studio with Node and NPM", "creator": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "environment": "Microsoft Windows [Version 10.0.14393]\r\nnode v - 8.12.0\r\njava version \"1.8.0_171\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_171-b11)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)\r\n", "comment": { "comments": [ { "id": "443229", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~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? \r\n\r\nThe 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", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-11-02T10:36:07.000+0000", "updated": "2018-11-02T10:36:07.000+0000" }, { "id": "444300", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Using the basic troubleshooting tricks and workaround this issue has been fixed.\r\n\r\n 1. uninstalled appcelerator (npm uninstall -g appcelerator).\r\n2. Then uninstalled Node.\r\n3. Also, delete any node directory to make sure any traces of Node was removed.\r\n4. Reinstall Node \r\n5. Reinstall appcelerator (npm install -g appcelerator)\r\n6. Run - appc use latest -l trace\r\n\r\nThanks!", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2018-12-06T04:44:10.000+0000", "updated": "2018-12-06T04:44:10.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }