[ 
https://issues.apache.org/jira/browse/CB-5905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13883251#comment-13883251
 ] 

Bruce Lefebvre commented on CB-5905:
------------------------------------

The use case for this scenario is a Windows user releasing maven artifacts to a 
repository, which are then unusable by OS X users.

> Cordova hook saved on Windows fails on OS X 
> --------------------------------------------
>
>                 Key: CB-5905
>                 URL: https://issues.apache.org/jira/browse/CB-5905
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.3.0
>         Environment: cordova 3.3.1-0.1.2
> node v0.10.22
> OS X 10.8.5
>            Reporter: Bruce Lefebvre
>            Priority: Minor
>
> Cordova CLI fails to run hooks that have been saved and archived on a Windows 
> system.
> To reproduce:
> - on OS X, download endofline.zip (archive of a CLI project) from [0]
> - extract it
> - cd to the extracted 'endofline' directory
> - `cordova platform add ios`
> Output: 
> /usr/local/share/npm/lib/node_modules/cordova/node_modules/q/q.js:126
>                     throw e;
>                           ^
> Error: Script "/<user 
> dir>/Downloads/endofline/.cordova/hooks/before_platform_add/01_log_something.js"
>  exited with status code 127. Aborting. Output:
> env: node\r: No such file or directory
>     at /usr/local/share/npm/lib/node_modules/cordova/src/hooker.js:138:34
>     at ChildProcess.exithandler (child_process.js:641:7)
>     at ChildProcess.EventEmitter.emit (events.js:98:17)
>     at maybeClose (child_process.js:735:16)
>     at Socket.<anonymous> (child_process.js:948:11)
>     at Socket.EventEmitter.emit (events.js:95:17)
>     at Pipe.close (net.js:466:12)
> [0] 
> https://bitbucket.org/brucelefebvre/phonegap-cli-node-r-no-such-file-or-directory-issue/downloads



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to