You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2014/01/28 16:39:38 UTC
[jira] [Resolved] (CB-5905) Cordova hook saved on Windows fails on
OS X
[ https://issues.apache.org/jira/browse/CB-5905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve resolved CB-5905.
-------------------------------
Resolution: Won't Fix
Assignee: Andrew Grieve
This problem is generally dealt with by your source control system.
E.g. for git, see https://help.github.com/articles/dealing-with-line-endings
> 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
> Assignee: Andrew Grieve
> 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)