Windows Shell中的Bash与Git Bash-不同的环境/路径?

我习惯于bash为bash为bash的mac。但是在工作的Windows计算机上,我很困惑。

我有Git Bash,它默认在JTuzman@IT-P51S-10684 MINGW64 /打开。我所有的全局软件包都可以工作,我可以运行nodedocker等。 echo $PATH在git bash中显示:

/c/Users/jtuzman/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/jtuzman/bin:/c/programdata/DockerDesktop/version-bin:/c/Program Files/Docker/Docker/Resources/bin:/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/c/Program Files (x86)/Intel/iCLS Client:/c/Program Files/Intel/iCLS Client:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Program Files/Intel/WiFi/bin:/c/Program Files/Common Files/Intel/WirelessCommon:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/c/WINDOWS/System32/OpenSSH:/cmd:/c/Program Files (x86)/Yarn/bin:/c/Program Files/Seapine/TestTrack:/c/Program Files/Seapine/TestTrack/64bitLibs:/c/Program Files/nodejs:/c/Users/jtuzman/scoop/apps/nodejs/current/bin:/c/Users/jtuzman/scoop/apps/nodejs/current:/c/Users/jtuzman/scoop/apps/yarn/current/Yarn/bin:/c/Users/jtuzman/scoop/apps/yarn/current/global/node_modules/.bin:/c/Users/jtuzman/scoop/shims:/c/Users/jtuzman/AppData/Local/microsoft/WindowsApps:/c/Users/jtuzman/AppData/Local/Programs/microsoft VS Code/bin:/c/Users/jtuzman/AppData/Local/Yarn/bin:/c/Program Files/JetBrains/WebStorm 2019.2.2/bin:/c/Users/jtuzman/AppData/Local/GitHubDesktop/bin:/c/Users/jtuzman/AppData/Roaming/npm:/usr/bin/vendor_perl:/usr/bin/core_perl

如果我cd ~是我的pwd,那么/c/Users/jtuzman

打开Windows终端(预览版)应用并输入bash时,我进入jtuzman @ IT-P51S-10684:/ mnt / c / Users / jtuzman $ and pwd {{1 }} / mnt / c / Users / jtuzman`。

但是当我奔跑说says时,我得到了:

node -v

我的路径是

Command 'node' not found,but can be installed with:

sudo apt install nodejs

我想使用Windows Terminal或Webstorm的终端,因为Git Bash不执行选项卡或多个窗口(我必须从任务栏启动它,然后必须导航至所需的目录)。

我如何使所有这些工作?

mada_baidu 回答:Windows Shell中的Bash与Git Bash-不同的环境/路径?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3135772.html

大家都在问