DEV Community

Discussion on: nodejs exec(``) runs commands in different shell

Collapse
 
ncpa0cpl profile image
ncpa0cpl

Aren't you focusing on the wrong thing? It shouldn't really matter what shell you use, bash or zsh, should make almost no difference. From what you are saying it would seem that the problem is the tree command, are you sure you have it installed and it's present in the PATH?