Does not work on Windows #2

Closed
opened 2017-06-01 17:23:22 +00:00 by Nicd · 1 comment
Nicd commented 2017-06-01 17:23:22 +00:00 (Migrated from gitlab.com)

npm installs apps as batch scripts (.cmd) instead of binaries on Windows, these cannot be spawned with :spawn_executable. Try to find another way of running them while preserving their stdout for logging.

`npm` installs apps as batch scripts (`.cmd`) instead of binaries on Windows, these cannot be spawned with `:spawn_executable`. Try to find another way of running them while preserving their stdout for logging.
Nicd commented 2017-06-01 19:13:11 +00:00 (Migrated from gitlab.com)

Marking down the winning combination:

iex(77)> Port.open({:spawn_executable, "c:/windows/system32/cmd.exe"}, [:exit_status, :stderr_to_stdout, :hide, line: 1024, args: ["/c", "c:/users/mikko/documents/mbu/node_modules/.bin/rollup.cmd"]])
Marking down the winning combination: ``` iex(77)> Port.open({:spawn_executable, "c:/windows/system32/cmd.exe"}, [:exit_status, :stderr_to_stdout, :hide, line: 1024, args: ["/c", "c:/users/mikko/documents/mbu/node_modules/.bin/rollup.cmd"]]) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: nicd/mbu#2
No description provided.