sindresorhus/opn

Do you want to work on this issue?

You can request for a bounty in order to promote it!

spawn cmd ENOENT #56

z354392349 posted onGitHub

I am a novice, I do not know why it has been guaranteed wrong, it is troubled, and for a long time did not fix it, I hope you can help me, thank you very much. const opn = require('opn');

opn(' http://sindresorhus.com ');


Is this going to be solved? I'm getting the same issue when %SystemRoot%\system32 isn't in the PATH variable.

posted by tallev266 over 5 years ago

What does node -p 'process.env.ComSpec' output?

posted by sindresorhus over 5 years ago

My ComSpec variable is C:\WINDOWS\system32\cmd.exe

posted by tallev266 over 5 years ago

hello ,,,i have face the same problem while use expo start commond using cmd ,,, so you should install gitbash to run app from there thanks

posted by zaminhussain over 5 years ago

I guess we could add path.dirname(process.env.ComSpec) to process.env.PATH.

posted by sindresorhus over 5 years ago

Maybe this was fixed by #195 too?

posted by oliversalzburg over 4 years ago

running into this in a linux container?!

UPDATE:

for me the solution was to install the (normally standard) ps tool in my container

posted by chris-aeviator almost 4 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests