shelljs icon indicating copy to clipboard operation
shelljs copied to clipboard

Not able to use shell.exec() command.

Open horcrux2301 opened this issue 8 years ago • 3 comments

Node version :- v8.10.0 ShellJS version :- 0.8.1 Operating system: macOS Sierra.

Description of the bug:

I am not able to use the shell.exec command. The command I am trying to run is shell.exec('g++ del.cpp -o del.o') .Every time I try to use this I get the following error.

Unable to find a path to the node binary. Please manually set config.execPath

horcrux2301 avatar Apr 11 '18 18:04 horcrux2301

Well, what's the path to your node binary? Are you using some framework like electron?

nfischer avatar Apr 11 '18 19:04 nfischer

I am developing a package for the Atom text editor. How do I give it the path to the node binary? And also will this be platform independent, considering I will have to publish this package for others as well.

horcrux2301 avatar Apr 13 '18 05:04 horcrux2301

Atom uses electron, which we don't support. Please see the wiki.

nfischer avatar Apr 13 '18 05:04 nfischer