How do I make the following command work in Mathematia?
Import["!\"C:\\Program Files\\nodejs\\node.exe\" -p console.log('test')", "Text"] I don't get any output as if the command didn't properly execute. If I execute the following my command does execute so it is simply a problem with the execute/displays output. Also Import["!where node", "Text"] works so it is in the path.
Import["!node -h", "Text"] EDIT: I can't reproduce this in any other application other then Mathematica so it isn't clear to me what the issue is.
nodecommand in your PATH? Did you verify that it is still in your PATH when using Mathematica (GetEnvironment)? $\endgroup$node test.jsworks. I added an exact path so that is no longer a question. I feel like there is enough information to reproduce the bug. $\endgroup$ffmpeg -helpdoesn't work also I feel like there is enough information to reproduce the bug and therefore the question shouldn't have been closed as is. $\endgroup$