我使用cmder在虚拟框中使用vagrant在VM上设置项目。突然命令停止正常运行。 我开始寻找并实现我在互联网上找到的东西。最终格式化Windows,大多数时候应该工作...
因此,在Windows的干净安装之后,我添加了我正在使用的其余所需程序。 VirtualBox,vagrant,Git for Windows,cmder,甚至尝试cygwin(但我更喜欢cmder因为它简单),还有一些小东西。
他是控制台输出:
cmd.exe
C:\>vagrant --version
Vagrant 1.9.7
C:\>node --version
v8.1.3
git bash
PBANACH@PC MINGW64 /c
$ vagrant --version
Vagrant 1.9.7
PBANACH@PC MINGW64 /c
$ node --version
v8.1.3
cmder
C:\
λ vagrant --version
C:\
λ node --version
v8.1.3
(这里没有流浪汉输出)
是的,我已经重新安装了流浪汉。
脚本输出
C:\Dev_projects\[...] (master)
λ sh setup_all.sh
-> Setting up Ansible zone
--> Starting virtual machine CC
--> Install Java JDK
--> Install nodejs, npm, protractor, webdriver-manager, google-chrome-stable (Selenium is not utilized)
-> Setting up Oracle zone
--> Start virtual machine wemdbc01
--> Prepare swap file
[...]
仅回显输出
setup_all.sh代码是:
#!/bin/bash
echo "-> Setting up Ansible zone"
./00_setup-ansible-zone.sh
echo "-> Setting up Oracle zone"
./01_setup-oracle-zone.sh
echo "-> Setting up MWS zone"
./02_setup-mws-zone.sh
echo "SETUP COMPLETED"
00_setup-ansible-zone.sh是:
#!/bin/bash
ANSIBLE_PLAYBOOKS_PATH=/var/wminst/instDir/ansible/playbooks
echo "--> Starting virtual machine CC"
vagrant up cc
echo "--> Install Java JDK"
vagrant ssh -c "ansible-playbook ${ANSIBLE_PLAYBOOKS_PATH}/install_jdk-cc.yml -v" cc
echo "--> Install nodejs, npm, protractor, webdriver-manager, google-chrome-stable (Selenium is not utilized)"
vagrant ssh -c "ansible-playbook ${ANSIBLE_PLAYBOOKS_PATH}/install_protractor-google-chrome.yml -v" cc
cmd.exe
PBANACH@CE16072 MINGW64 /c/Dev_pro...
-DevBox-WRO (master)
$ ./setup_all.sh
ok-> Setting up Ansible zone
--> Starting virtual machine CC
stdout is not a tty
--> Install Java JDK
stdout is not a tty
--> Install nodejs, npm, protractor
stdout is not a tty
-> Setting up Oracle zone
--> Start virtual machine wemdbc01
stdout is not a tty
[...]
cmd.exe路径
C:\>echo %path%
C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sy
stem32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\
;C:\HashiCorp\Vagrant\bin;C:\Program Files (x86)\IDM Computer Solutions\UltraEdi
t;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\pbanach\AppData\Roaming\
npm
Git bash PATH
$ echo $PATH
/c/Users/pbanach/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr
/bin:/c/Users/pbanach/bin:/c/ProgramData/Oracle/Java/javapath:/c/WINDOWS/system3
2:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0
:/c/Program Files/nodejs:/c/HashiCorp/Vagrant/bin:/cmd:/c/Program Files (x86)/ID
M Computer Solutions/UltraEdit:/c/Program Files (x86)/Microsoft VS Code/bin:/c/U
sers/pbanach/AppData/Roaming/npm:/usr/bin/vendor_perl:/usr/bin/core_perl
cmder PATH
λ echo %PATH%
C:\cmder\bin;C:\cmder\vendor\git-for-windows\cmd;C:\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\cmder\vendor\conemu-maximus5;C:\cmder\vendor\conemu-maximus5\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\HashiCorp\Vagrant\bin;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\pbanach\AppData\Roaming\npm;C:\cmder\vendor\git-for-windows\usr\bin;C:\cmder\vendor\git-for-windows\usr\share\vim\vim74;C:\cmder\
所有shell都有问题 - 控制台输出中只显示回显线。
我很好奇可能是什么问题。我现在非常绝望,因为它完全阻止了我。