适用于Windows的Git Bash无法正常运行'lein repl'命令 [英] Git Bash for Windows not working 'lein repl' command

查看:198
本文介绍了适用于Windows的Git Bash无法正常运行'lein repl'命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上使用的是git bash而不是默认的Windows命令外壳程序(cmd).
但是我无法在git bash中运行'lein repl'.
它什么也没显示,我必须按crtl + c才能重新获得控制权.

I'm actually using git bash instead of default windows command shell (cmd).
But I cannot run 'lein repl' in git bash.
It doesn't show anything and I must press crtl + c to regain control.

有什么建议吗? 谢谢.

Any suggestion? Thank you.

-编辑

我正在运行lein而不是lein.bat,因为我在.bashrc中添加了alias lein=lein.bat,所以我认为这不是问题.

I'm running lein instead of lein.bat because I added alias lein=lein.bat in my .bashrc, so I don't think it is a problem.

lein run在Git Bash中工作正常,而leiningen在Windows cmd中工作正常.问题在lein repl上很明显.

lein run is working fine in Git Bash and leiningen works fine in windows cmd. The problem is explicity with lein repl.

当我运行which lein时,我得到了which: no lein in ([MY-PATH-VAR])

When I run which lein I got which: no lein in ([MY-PATH-VAR])

推荐答案

首先使用命令提示符中的以下命令检查是否已在Windows中安装了lein.bat. 莱恩--version

First Check if you have installed lein.bat in windows using below command in command prompt lein --version

然后如果lein可用,则在git bash中键入以下命令 别名lein ='lein.bat'

Then if lein is available, then in your git bash type the below command alias lein='lein.bat'

然后运行您的lein命令,它肯定可以工作...

Thein run your lein command it will work for sure...

这篇关于适用于Windows的Git Bash无法正常运行'lein repl'命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆