### Version v14.17.6 ### Platform Linux steven-ubuntu 5.11.0-37-generic #41~20.04.2-Ubuntu SMP Fri Sep 24 09:06:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux ### Subsystem _No response_ ### What steps will reproduce the bug? ``` const root = require("child_process") .execSync("node -v") .toString(); console.log(root); ``` I expected the output is the `v14.17.6`, but I got nothing. ``` const root = require("child_process") .execSync("node -v", {stdio:"inherit"}) ``` In this case, I got the output in console. It is so strange... Can anyone help me? I tried to search, about this case. But I can't get any helpful information. ### How often does it reproduce? Is there a required condition? _No response_ ### What is the expected behavior? _No response_ ### What do you see instead? _No response_ ### Additional information _No response_
Activity
mscdex commentedon Oct 7, 2021
It works fine for me with node v14.18.0 on Linux.
steven94kr commentedon Oct 7, 2021
Why didn't I think of that?
Thank you for your kindness.
I will reply after trying it again with node v14.18.0
steven94kr commentedon Oct 7, 2021
It works fine for me with node v14.18.0 on Linux :)
sorry for wasting your time.
steven94kr commentedon Oct 13, 2021
I have confirmed that the issue only occurs on nodes installed from snap.
Thanks a lot. sorry again for wasting your time
nodejs/snap#13