Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20151] Windows 10: If you run appc/ti info, then "Error: spawn powershell ENOENT" is returned

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionNot Our Bug
Resolution Date2015-12-17T14:17:57.000+0000
Affected Version/sRelease 5.1.2, Release 5.1.1
Fix Version/sn/a
ComponentsWindows
Labelsqe-5.1.2
ReporterWilson Luu
AssigneeChristopher Williams
Created2015-12-17T01:06:24.000+0000
Updated2016-04-26T05:42:50.000+0000

Description

*Details:* If you run appc/ti info, then "Error: spawn powershell ENOENT" is returned. *Notes:* * This occurs with current GA and 5.1.2 SDK. * When I filed this ticket, I upgraded my machine from Windows 8 Enterprise to Windows 10 Pro. * To workaround this issue, add C:\Windows\System32\WindowsPowerShell\v1.0 to your Path environment variable. *Steps to reproduce:*

Run appc ti info

*Actual:* "Error: spawn powershell ENOENT" stack trace is returned; see attachment. *Expected:* No errors should appear.

Attachments

FileDateSize
stack.txt2015-12-17T01:06:13.000+00005522

Comments

  1. Christopher Williams 2015-12-17

    I'm not sure what to do about this one. Basically this looks like a one-off configuration problem, though I honestly have no idea why or how it'd happen. By default in both the System and my user PATH the powershell bin directory is listed. That should be the case for every Windows system. I think unless we start seeing more reports of this, this may just be a fluke. If it's common, I suppose we'll need to add special code for finding Powershell at the standard location when it's not on the PATH?
  2. Wilson Luu 2015-12-17

    For now, will close ticket as "Not Our Bug".
  3. Umair Ahmed 2016-04-24

    @ Wilson, did you resolve this problem. I am facing it and have no solution. I am using Window 8 and all other path variables are set accordingly including the power shell directory added in my path.
  4. Wilson Luu 2016-04-25

    [~Umair], At the moment, there is no fix for this issue as per Chris's comment. Can you provide the following information: * The stack trace you are seeing. * The versions you are using for: ** Appc CLI NPM: Version property in C:\Users\<USER>\AppData\Roaming\npm\node_modules\appcelerator\package.json ** Appc CLI Core: C:\Users\<USER>\.appcelerator\install\.version ** Titanium SDK: SDK selected property in C:\Users\<USER>\.titanium\config.json ** Node version: node -v ** Architecture of your Node: 32-bit or 64-bit ** Architecture of your Windows OS * And, after you set the path, did you try restarting your Windows machine?
  5. Umair Ahmed 2016-04-26

    I was on Windows 8.1 and yes after restart, I dont know what happened but the issue is fixed :)

JSON Source