cmderdev / cmder

Lovely console emulator package for Windows
https://cmder.app
MIT License
25.74k stars 2.02k forks source link

[Bug] The command ‘node’ was not recognized by wox launch #2848

Closed lovelyJason closed 1 year ago

lovelyJason commented 1 year ago

Version Information

Cmder version: 1.3.21
Operating system: windows x64

Cmder Edition

Cmder Full (with Git)

Description of the issue

Look at this GIF:

cmder

I installed the nodejs program.And then I open the cmder.exe program directly, enter the node -v command.It can smoothly output node version.

image

But If I open the 'cmder.exe' program through 'WOX', enter the enter the node -v command.It outputs below image

The above Startup Task is the '{bash::bash}' used.

If I change to '{cmd::Cmder}' task, it still performs so.It cannot recognize the node command through the cmder that is opened by WOX

How to reproduce

1.startup task shell: {bash::bash} or any other available 2.start commands(default):

-new_console:d:D:\ set "PATH=%ConEmuDir%\..\git-for-windows\usr\bin;%PATH%" & %ConEmuDir%\..\git-for-windows\git-cmd.exe --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe "%ConEmuDir%\..\git-for-windows\usr\bin\bash.exe" --login -i
3.open cmder through wox

Additional context

No response

Checklist

daxgames commented 1 year ago

@lovelyJason what is WOX and did you re-open it after installing node? Cmder launced from WOX would share the path of WOX so if you have not relaunched WOX or rebooted after installing node WOX would have a path that did not include 'node.exe'

How did you install node?

Is node found in a normal windows cmd.exe window?

lovelyJason commented 1 year ago

I try to re-open wox.That works!haha.

daxgames commented 1 year ago

@lovelyJason glad to help.