[AC-2313] With the last Node update, local ACS project stop working on Windows
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-05T21:55:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator CLI |
Labels | SupportTeam, node-acs |
Reporter | Manuel Conde Vendrell |
Assignee | Chris Barber |
Created | 2013-11-27T15:20:22.000+0000 |
Updated | 2016-03-08T07:41:19.000+0000 |
Description
Yesterday I upgrade Node (an upgrade was offered) after then, the acs command line don't works.
I try to know why, and I found that the script for DOS is incorrect: it calls linux commands, like "sh". Here is the code for acs and for alloy, see the differences:
ACS.CMD
@IF EXIST "%~dp0\/bin/sh.exe" (
"%~dp0\/bin/sh.exe" "%~dp0\node_modules\acs\bin\acs" %*
) ELSE (
/bin/sh "%~dp0\node_modules\acs\bin\acs" %*
)
ALLOY.CMD
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\node_modules\alloy\bin\alloy" %*
) ELSE (
node "%~dp0\node_modules\alloy\bin\alloy" %*
)
Changing acs to something equivalent to the alloy.cmd didn't work.
Also, in that folders seems to be errors, for example in the folder npm\node_modules\acs\bin:
#!/bin/sh
exec node --harmony_proxies --debug /Users/kshi/Development/node-acs-tests/node-acs/nettle/lib/nettle.js "$@"
What seems incorrect (a personal path for a user kshi?).
Ok, was in version 1.0.8 of Node.ACS Fixed in the today release 1.0.9 Can be closed